From a33393265b96300377852ebcce83774420b2521d Mon Sep 17 00:00:00 2001 From: kobalicek Date: Mon, 7 Mar 2016 22:57:45 +0100 Subject: [PATCH] [BUG] Clear last error after X86Compiler is attached to X86Assembler (#120) --- src/asmjit/x86/x86compiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/asmjit/x86/x86compiler.cpp b/src/asmjit/x86/x86compiler.cpp index 5e2f1bd..d3de530 100644 --- a/src/asmjit/x86/x86compiler.cpp +++ b/src/asmjit/x86/x86compiler.cpp @@ -224,6 +224,7 @@ Error X86Compiler::attach(Assembler* assembler) { _regSize = static_cast(assembler->getRegSize()); _regCount = static_cast(assembler)->getRegCount(); _finalized = false; + // _lastError = kErrorOk; zax = static_cast(assembler)->zax; zcx = static_cast(assembler)->zcx;