mirror of
https://github.com/ziglang/zig.git
synced 2026-01-09 17:05:16 +00:00
fix regression in one of the doc examples
This commit is contained in:
parent
db50cf7049
commit
a2e8ef77e2
@ -14666,6 +14666,10 @@ static IrInstruction *ir_analyze_alloca(IrAnalyze *ira, IrInstruction *source_in
|
||||
|
||||
if ((err = type_resolve(ira->codegen, var_type, ResolveStatusZeroBitsKnown)))
|
||||
return ira->codegen->invalid_instruction;
|
||||
if (align != 0) {
|
||||
if ((err = type_resolve(ira->codegen, var_type, ResolveStatusAlignmentKnown)))
|
||||
return ira->codegen->invalid_instruction;
|
||||
}
|
||||
assert(result->base.value.data.x_ptr.special != ConstPtrSpecialInvalid);
|
||||
|
||||
pointee->type = var_type;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user