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 47d75ac commit ea703a4Copy full SHA for ea703a4
lib/IRGen/GenDecl.cpp
@@ -3235,7 +3235,8 @@ llvm::Constant *swift::irgen::emitCXXConstructorThunkIfNeeded(
3235
3236
StackProtectorMode IRGenModule::shouldEmitStackProtector(SILFunction *f) {
3237
const SILOptions &opts = IRGen.SIL.getOptions();
3238
- return (opts.EnableStackProtection && f->needsStackProtection()) ?
+ // 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) ?
3240
StackProtectorMode::StackProtector : StackProtectorMode::NoStackProtector;
3241
}
3242
0 commit comments