authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-26 22:49:59-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-26 22:50:12-04:00
loga2e8ef77e2087e26c1449c56ad16efcea71679db
treee0bf7d78160e05fb19f1a01bc8dfa5186243a343
parentdb50cf7049b6171a280767e7b1cd0bd215848c92
signaturelock-open Commit is signed but in an unrecognized format.

fix regression in one of the doc examples


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

src/ir.cpp+4
...@@ -14666,6 +14666,10 @@ static IrInstruction *ir_analyze_alloca(IrAnalyze *ira, IrInstruction *source_in...@@ -14666,6 +14666,10 @@ static IrInstruction *ir_analyze_alloca(IrAnalyze *ira, IrInstruction *source_in
1466614666
14667 if ((err = type_resolve(ira->codegen, var_type, ResolveStatusZeroBitsKnown)))14667 if ((err = type_resolve(ira->codegen, var_type, ResolveStatusZeroBitsKnown)))
14668 return ira->codegen->invalid_instruction;14668 return ira->codegen->invalid_instruction;
14669 if (align != 0) {
14670 if ((err = type_resolve(ira->codegen, var_type, ResolveStatusAlignmentKnown)))
14671 return ira->codegen->invalid_instruction;
14672 }
14669 assert(result->base.value.data.x_ptr.special != ConstPtrSpecialInvalid);14673 assert(result->base.value.data.x_ptr.special != ConstPtrSpecialInvalid);
1467014674
14671 pointee->type = var_type;14675 pointee->type = var_type;