fix regression in global const alignment

This commit is contained in:
Andrew Kelley
2020-01-09 19:29:51 -05:00
parent fbcee58cfc
commit b6c8fead00
3 changed files with 4 additions and 1 deletions

View File

@@ -17052,6 +17052,7 @@ static IrInstruction *ir_analyze_alloca(IrAnalyze *ira, IrInstruction *source_in
ZigValue *pointee = create_const_vals(1);
pointee->special = ConstValSpecialUndef;
pointee->llvm_align = align;
IrInstructionAllocaGen *result = ir_build_alloca_gen(ira, source_inst, align, name_hint);
result->base.value->special = ConstValSpecialStatic;