mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
@@ -33,7 +33,7 @@ gb_internal bool lb_is_elem_const(Ast *elem, Type *elem_type) {
|
|||||||
|
|
||||||
gb_internal bool lb_is_const_nil(lbValue value) {
|
gb_internal bool lb_is_const_nil(lbValue value) {
|
||||||
LLVMValueRef v = value.value;
|
LLVMValueRef v = value.value;
|
||||||
if (LLVMIsConstant(v)) {
|
if (v != nullptr && LLVMIsConstant(v)) {
|
||||||
if (LLVMIsAConstantAggregateZero(v)) {
|
if (LLVMIsAConstantAggregateZero(v)) {
|
||||||
return true;
|
return true;
|
||||||
} else if (LLVMIsAConstantPointerNull(v)) {
|
} else if (LLVMIsAConstantPointerNull(v)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user