From bb8b6d9fa2ef1f502151e47ff9ce49049c817f80 Mon Sep 17 00:00:00 2001 From: kobalicek Date: Mon, 20 Feb 2017 08:56:38 +0100 Subject: [PATCH] Mark _globalOptions as well as _lastError in CodeEmitter::setLastError() --- src/asmjit/base/codeemitter.cpp | 1 + 1 file changed, 1 insertion(+) 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; }