mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +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);
|
value = lb_emit_conv(p, value, vt);
|
||||||
if (lb_is_const(value)) {
|
if (lb_is_const(value)) {
|
||||||
LLVMValueRef res = lb_construct_const_union(m, value.value, vt, t);
|
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);
|
lbAddr parent = lb_add_local_generated(p, t, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user