mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Change to assert to test both LLVMIsConstant and LLVMIsGlobalConstant
This commit is contained in:
@@ -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++) {
|
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);
|
res.value = llvm_const_named_struct(lb_type(m, original_type), values, cast(unsigned)value_count);
|
||||||
|
|||||||
Reference in New Issue
Block a user