Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asmjit/asmjit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobalicek <kobalicek.petr@gmail.com>2017-02-20 10:56:38 +0300
committerkobalicek <kobalicek.petr@gmail.com>2017-02-20 10:56:38 +0300
commitbb8b6d9fa2ef1f502151e47ff9ce49049c817f80 (patch)
treecad7b2f26223794adf7555d4a9d7645f892db538
parent2416e428a3c9374f9a7357e025ec7f86d983a3b1 (diff)
Mark _globalOptions as well as _lastError in CodeEmitter::setLastError()
-rw-r--r--src/asmjit/base/codeemitter.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}