File tree Expand file tree Collapse file tree 3 files changed +610
-622
lines changed Expand file tree Collapse file tree 3 files changed +610
-622
lines changed Original file line number Diff line number Diff line change @@ -3042,7 +3042,7 @@ fn flush(
3042
3042
// If there's an output file, it wants to decide where the LLVM object goes!
3043
3043
const sub_prog_node = comp .link_prog_node .start ("LLVM Emit Object" , 0 );
3044
3044
defer sub_prog_node .end ();
3045
- try llvm_object .emit (.{
3045
+ try llvm_object .emit (.{ . zcu = zcu , . tid = tid }, .{
3046
3046
.pre_ir_path = comp .verbose_llvm_ir ,
3047
3047
.pre_bc_path = comp .verbose_llvm_bc ,
3048
3048
Original file line number Diff line number Diff line change @@ -9705,7 +9705,6 @@ fn funcCommon(
9705
9705
func_inst,
9706
9706
cc_src,
9707
9707
is_noinline,
9708
- is_generic,
9709
9708
);
9710
9709
}
9711
9710
@@ -9745,7 +9744,6 @@ fn funcCommon(
9745
9744
func_inst,
9746
9745
cc_src,
9747
9746
is_noinline,
9748
- is_generic,
9749
9747
);
9750
9748
}
9751
9749
@@ -9762,7 +9760,6 @@ fn funcCommon(
9762
9760
func_inst,
9763
9761
cc_src,
9764
9762
is_noinline,
9765
- is_generic,
9766
9763
);
9767
9764
}
9768
9765
@@ -9779,7 +9776,6 @@ fn finishFunc(
9779
9776
func_inst: Zir.Inst.Index,
9780
9777
cc_src: LazySrcLoc,
9781
9778
is_noinline: bool,
9782
- is_generic: bool,
9783
9779
) CompileError!Air.Inst.Ref {
9784
9780
const pt = sema.pt;
9785
9781
const zcu = pt.zcu;
@@ -9911,13 +9907,6 @@ fn finishFunc(
9911
9907
}),
9912
9908
}
9913
9909
9914
- if (!is_generic and sema.wantErrorReturnTracing(return_type)) {
9915
- // Make sure that StackTrace's fields are resolved so that the backend can
9916
- // lower this fn type.
9917
- const unresolved_stack_trace_ty = try sema.getBuiltinType(block.nodeOffset(.zero), .StackTrace);
9918
- try unresolved_stack_trace_ty.resolveFields(pt);
9919
- }
9920
-
9921
9910
return Air.internedToRef(if (opt_func_index != .none) opt_func_index else func_ty);
9922
9911
}
9923
9912
You can’t perform that action at this time.
0 commit comments