authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-26 12:54:59-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-26 12:54:59-04:00
log0d4354324c17a15689118d259c069a6ee094dab4
treef5b4ee3ed8059407d8f45cb3c227fb6cf15c72e7
parentddd98a7f10767e2bea43fb35405a9414a02ecbdf
signaturelock-open Commit is signed but in an unrecognized format.

fix behavior tests compile error on i386-linux


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

src/ir.cpp+7
......@@ -27759,6 +27759,13 @@ static IrInstGen *ir_align_cast(IrAnalyze *ira, IrInstGen *target, uint32_t alig
2775927759 old_align_bytes = fn_type_id.alignment;
2776027760 fn_type_id.alignment = align_bytes;
2776127761 result_type = get_fn_type(ira->codegen, &fn_type_id);
27762 } else if (target_type->id == ZigTypeIdAnyFrame) {
27763 if (align_bytes >= target_fn_align(ira->codegen->zig_target)) {
27764 result_type = target_type;
27765 } else {
27766 ir_add_error(ira, &target->base, buf_sprintf("sub-aligned anyframe not allowed"));
27767 return ira->codegen->invalid_inst_gen;
27768 }
2776227769 } else if (target_type->id == ZigTypeIdOptional &&
2776327770 target_type->data.maybe.child_type->id == ZigTypeIdPointer)
2776427771 {