mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 04:24:37 +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->type() == NodeType::kSentinel) {
|
||||||
if (node == _funcNode->endNode()) {
|
if (node == _funcNode->endNode()) {
|
||||||
// Make sure we didn't flow here if this is the end of the function sentinel.
|
// 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);
|
return DebugUtils::errored(kErrorInvalidState);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user