Fix trace builder to not confuse self-verification.
diff --git a/vm/mterp/out/InterpC-portstd.c b/vm/mterp/out/InterpC-portstd.c
index 3576608..b695b43 100644
--- a/vm/mterp/out/InterpC-portstd.c
+++ b/vm/mterp/out/InterpC-portstd.c
@@ -3625,7 +3625,9 @@
#if defined(WITH_JIT)
// Something threw during trace selection - abort the current trace
- interpState->jitState = kJitTSelectEnd;
+ if (interpState->jitState == kJitTSelect) {
+ interpState->jitState = kJitTSelectEnd;
+ }
#endif
/*
* We save off the exception and clear the exception status. While