Skip to content

Commit ea703a4

Browse files
[wasm] Disable stack protection support for now
1 parent 47d75ac commit ea703a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3235,7 +3235,8 @@ llvm::Constant *swift::irgen::emitCXXConstructorThunkIfNeeded(
32353235

32363236
StackProtectorMode IRGenModule::shouldEmitStackProtector(SILFunction *f) {
32373237
const SILOptions &opts = IRGen.SIL.getOptions();
3238-
return (opts.EnableStackProtection && f->needsStackProtection()) ?
3238+
// FIXME(katei): stack protection support will be added by https://github.com/WebAssembly/wasi-libc/pull/351
3239+
return (opts.EnableStackProtection && f->needsStackProtection() && Triple.getObjectFormat() != llvm::Triple::Wasm) ?
32393240
StackProtectorMode::StackProtector : StackProtectorMode::NoStackProtector;
32403241
}
32413242

0 commit comments

Comments
 (0)