diff options
Diffstat (limited to 'erts/emulator/asmjit/core/builder.cpp')
-rw-r--r-- | erts/emulator/asmjit/core/builder.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/erts/emulator/asmjit/core/builder.cpp b/erts/emulator/asmjit/core/builder.cpp index 5df243e7b8..77f94e7aeb 100644 --- a/erts/emulator/asmjit/core/builder.cpp +++ b/erts/emulator/asmjit/core/builder.cpp @@ -594,10 +594,12 @@ Error BaseBuilder::_emit(InstId instId, const Operand_& o0, const Operand_& o1, Error err = _funcs.validate(arch(), BaseInst(instId, options, _extraReg), opArray, opCount, validationFlags); if (ASMJIT_UNLIKELY(err)) { - resetInstOptions(); - resetExtraReg(); - resetInlineComment(); +#ifndef ASMJIT_NO_LOGGING + return EmitterUtils::logInstructionFailed(this, err, instId, options, o0, o1, o2, opExt); +#else + resetState(); return reportError(err); +#endif } } #endif |