diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-25 22:14:38 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-25 22:14:38 +0000 |
| commit | 23c68b4f7a3a8999cfbdca999b46300e2ec8ff17 (patch) | |
| tree | f1fea6b3b8160464999e05c90c69ee26bc6bfaac /src/llvm_backend.cpp | |
| parent | 615104afd196227de6bec194199766696a24568b (diff) | |
Change to assert to test both LLVMIsConstant and LLVMIsGlobalConstant
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 9e428a5fe..f1aef4150 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -6064,7 +6064,7 @@ lbValue lb_const_value(lbModule *m, Type *type, ExactValue value, bool allow_loc } for (isize i = 0; i < value_count; i++) { - GB_ASSERT(LLVMIsConstant(values[i])); + GB_ASSERT(LLVMIsConstant(values[i]) || LLVMIsGlobalConstant(values[i])); } res.value = llvm_const_named_struct(lb_type(m, original_type), values, cast(unsigned)value_count); |