diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-18 11:18:53 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-18 11:18:53 -0400 |
| commit | 8ed88280a62f2a400d00b5ac20618539693dad36 (patch) | |
| tree | 6cd87013272a773115a958ce29eff21d05919233 /src/ir.cpp | |
| parent | 99112b5d4ac885f63a79c6f7926f92ff4f3ce819 (diff) | |
| download | zig-8ed88280a62f2a400d00b5ac20618539693dad36.tar.gz zig-8ed88280a62f2a400d00b5ac20618539693dad36.zip | |
Revert "fixes resolving aligment of child type in slice"
This reverts commit aa60d2a688c965dcccf8e2c42afe5c180daba8fc.
The copyright ownership of this 10 line patch is under dispute.
See #2701 for details. So I'll revert it and then fix it myself without
looking at this patch.
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 5c09e48b2d..21751b9a96 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -16794,7 +16794,7 @@ static IrInstruction *ir_analyze_instruction_slice_type(IrAnalyze *ira, case ZigTypeIdPromise: case ZigTypeIdVector: { - if ((err = type_resolve(ira->codegen, child_type, ResolveStatusAlignmentKnown))) + if ((err = type_resolve(ira->codegen, child_type, ResolveStatusZeroBitsKnown))) return ira->codegen->invalid_instruction; ZigType *slice_ptr_type = get_pointer_to_type_extra(ira->codegen, child_type, is_const, is_volatile, PtrLenUnknown, align_bytes, 0, 0, is_allow_zero); |
