diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-09 19:29:51 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-16 21:58:51 -0500 |
| commit | b6c8fead00aa5d7b39697aedb0cb1eef53010b83 (patch) | |
| tree | 1c91dd3aff35d3334f8fdf8b1f37d6246974a564 /src/ir.cpp | |
| parent | fbcee58cfcabddd3e0842e22141a983a8169502f (diff) | |
| download | zig-b6c8fead00aa5d7b39697aedb0cb1eef53010b83.tar.gz zig-b6c8fead00aa5d7b39697aedb0cb1eef53010b83.zip | |
fix regression in global const alignment
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 67bd463644..a1e8f9c43b 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -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; |
