authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-01 23:56:28-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-01 23:56:28-05:00
loge7ee6647a16738d344173d0482028dc5578cc6c2
treecb2e096bd1b4ec17f7badc7ac73e706d66c99df1
parent3644e85091c2407ddb563531875a6bc5e979e32e
signaturelock-open Commit is signed but in an unrecognized format.

fix invalid check for fn_inline property


1 files changed, 1 insertions(+), 1 deletions(-)

src/ir.cpp+1-1
......@@ -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;