1 parent
cc61fdd90e
commit
10bde20850
1 file changed
+1
-1
@@ -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