diff --git a/src/asmjit/base/codeemitter.cpp b/src/asmjit/base/codeemitter.cpp index bed75fa..6bfaad7 100644 --- a/src/asmjit/base/codeemitter.cpp +++ b/src/asmjit/base/codeemitter.cpp @@ -135,6 +135,7 @@ Error CodeEmitter::setLastError(Error error, const char* message) { // to terminate the execution of `setLastError()`. This is the reason why // we have delayed changing the `_error` member until now. _lastError = error; + _globalOptions |= kOptionMaybeFailureCase; return error; }