mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
[Bug] The compiler should not bail when there is data before the FuncEnd node
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user