Skip to content

Commit e7ee664

Browse files
committed
fix invalid check for fn_inline property
1 parent 3644e85 commit e7ee664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ir.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15945,7 +15945,7 @@ static IrInstruction *ir_analyze_instruction_decl_var(IrAnalyze *ira,
1594515945
result_type = ira->codegen->builtin_types.entry_invalid;
1594615946
} else if (init_val->type->id == ZigTypeIdFn &&
1594715947
init_val->special != ConstValSpecialUndef &&
15948-
init_val->data.x_ptr.special != ConstPtrSpecialHardCodedAddr &&
15948+
init_val->data.x_ptr.special == ConstPtrSpecialFunction &&
1594915949
init_val->data.x_ptr.data.fn.fn_entry->fn_inline == FnInlineAlways)
1595015950
{
1595115951
var_class_requires_const = true;

0 commit comments

Comments
 (0)