summaryrefslogtreecommitdiff
path: root/erts/emulator/asmjit/core/rabuilders_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'erts/emulator/asmjit/core/rabuilders_p.h')
-rw-r--r--erts/emulator/asmjit/core/rabuilders_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/asmjit/core/rabuilders_p.h b/erts/emulator/asmjit/core/rabuilders_p.h
index 1b763030c4..9d9b4282d2 100644
--- a/erts/emulator/asmjit/core/rabuilders_p.h
+++ b/erts/emulator/asmjit/core/rabuilders_p.h
@@ -401,7 +401,7 @@ public:
if (node->type() == NodeType::kSentinel) {
if (node == _funcNode->endNode()) {
// Make sure we didn't flow here if this is the end of the function sentinel.
- if (ASMJIT_UNLIKELY(_curBlock))
+ if (ASMJIT_UNLIKELY(_curBlock && _hasCode))
return DebugUtils::errored(kErrorInvalidState);
break;
}