We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 592f104 commit b4fd57aCopy full SHA for b4fd57a
src/codegen/llvm.zig
@@ -6385,6 +6385,9 @@ pub const FuncGen = struct {
6385
// * https://github.com/llvm/llvm-project/blob/56905dab7da50bccfcceaeb496b206ff476127e1/llvm/test/MC/WebAssembly/blockaddress.ll
6386
if (zcu.comp.getTarget().cpu.arch.isWasm()) break :jmp_table null;
6387
6388
+ // Workaround for https://github.com/ziglang/zig/issues/24383:
6389
+ if (self.ng.ownerModule().optimize_mode == .ReleaseSafe) break :jmp_table null;
6390
+
6391
// On a 64-bit target, 1024 pointers in our jump table is about 8K of pointers. This seems just
6392
// about acceptable - it won't fill L1d cache on most CPUs.
6393
const max_table_len = 1024;
0 commit comments