aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_proc.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-23 19:24:53 +0100
committergingerBill <bill@gingerbill.org>2021-08-23 19:24:53 +0100
commit382ca20916aaecd6f6b18ea1bd1b849aca2a4f13 (patch)
treeb226505dbbb2f42e47ccc267572554f77a67e6ba /src/llvm_backend_proc.cpp
parentfe2ad54f6074ad2fdd9e8107a4c6ca46b9a4922f (diff)
Correct procedure checking flag handling, and correct the (bodge) handle of unchecked procedure bodies
Diffstat (limited to 'src/llvm_backend_proc.cpp')
-rw-r--r--src/llvm_backend_proc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp
index 366fba780..58f03f4e8 100644
--- a/src/llvm_backend_proc.cpp
+++ b/src/llvm_backend_proc.cpp
@@ -3,7 +3,7 @@ lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool ignore_body)
GB_ASSERT(entity != nullptr);
GB_ASSERT(entity->kind == Entity_Procedure);
if (!entity->Procedure.is_foreign) {
- GB_ASSERT(entity->flags |= EntityFlag_ProcBodyChecked);
+ GB_ASSERT(entity->flags & EntityFlag_ProcBodyChecked);
}
String link_name = {};