diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-15 14:22:24 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:19 -0700 |
| commit | a1236b32f9a4114231312b1493dcbac308a2c055 (patch) | |
| tree | 6c5760b75396a392765f6c08755110c0df1065a5 /src/Module.zig | |
| parent | 2596f5d92593a5f7dad21d9a54f2d08f33639432 (diff) | |
| download | zig-a1236b32f9a4114231312b1493dcbac308a2c055.tar.gz zig-a1236b32f9a4114231312b1493dcbac308a2c055.zip | |
libcxx: update to new Compilation API
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Module.zig b/src/Module.zig index 0645b6f04f..571301c8e6 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -4566,7 +4566,7 @@ pub fn analyzeFnBody(mod: *Module, func_index: InternPool.Index, arena: Allocato // If we don't get an error return trace from a caller, create our own. if (func.analysis(ip).calls_or_awaits_errorable_fn and - mod.comp.config.error_tracing and + mod.comp.config.any_error_tracing and !sema.fn_ret_ty.isError(mod)) { sema.setupErrorReturnTrace(&inner_block, last_arg_index) catch |err| switch (err) { @@ -5567,8 +5567,8 @@ pub const Feature = enum { }; pub fn backendSupportsFeature(zcu: Module, feature: Feature) bool { - const cpu_arch = zcu.root_mod.resolved_target.cpu.arch; - const ofmt = zcu.root_mod.resolved_target.ofmt; + const cpu_arch = zcu.root_mod.resolved_target.result.cpu.arch; + const ofmt = zcu.root_mod.resolved_target.result.ofmt; const use_llvm = zcu.comp.config.use_llvm; return switch (feature) { .panic_fn => ofmt == .c or use_llvm or cpu_arch == .x86_64, |
