mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 19:30:06 +00:00
Fix case: in type switch issue
This commit is contained in:
@@ -1110,7 +1110,7 @@ gb_internal lbValue lb_emit_load(lbProcedure *p, lbValue value) {
|
||||
return lb_addr_load(p, addr);
|
||||
}
|
||||
|
||||
GB_ASSERT(is_type_pointer(value.type));
|
||||
GB_ASSERT_MSG(is_type_pointer(value.type), "%s", type_to_string(value.type));
|
||||
Type *t = type_deref(value.type);
|
||||
LLVMValueRef v = LLVMBuildLoad2(p->builder, lb_type(p->module, t), value.value, "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user