Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asmjit/asmjit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobalicek <kobalicek.petr@gmail.com>2022-06-27 13:10:40 +0300
committerkobalicek <kobalicek.petr@gmail.com>2022-06-27 13:10:40 +0300
commit35f92e8706db78c6aa7482b5e1cdb59c5972a965 (patch)
tree4b6856da704df3830eae65f83c4e609bccb12166
parent70209cddd7a405bca0c29dc82fa42e3ccd9ebd73 (diff)
[Bug] The compiler should not bail when there is data before the FuncEnd node
-rw-r--r--src/asmjit/core/rabuilders_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asmjit/core/rabuilders_p.h b/src/asmjit/core/rabuilders_p.h
index 1b76303..9d9b428 100644
--- a/src/asmjit/core/rabuilders_p.h
+++ b/src/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;
}