mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
Check for nullptr
This commit is contained in:
@@ -2497,7 +2497,9 @@ gb_internal lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) {
|
||||
value = lb_emit_conv(p, value, vt);
|
||||
if (lb_is_const(value)) {
|
||||
LLVMValueRef res = lb_construct_const_union(m, value.value, vt, t);
|
||||
return {res, t};
|
||||
if (res != nullptr) {
|
||||
return {res, t};
|
||||
}
|
||||
}
|
||||
|
||||
lbAddr parent = lb_add_local_generated(p, t, true);
|
||||
|
||||
Reference in New Issue
Block a user