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 67753f2 commit 4bd4649Copy full SHA for 4bd4649
clang/lib/CodeGen/CodeGenModule.cpp
@@ -1071,7 +1071,8 @@ void CodeGenModule::Release() {
1071
CodeGenOpts.SanitizeCfiCanonicalJumpTables);
1072
}
1073
1074
- if (LangOpts.Sanitize.has(SanitizerKind::KCFI)) {
+ if (LangOpts.Sanitize.has(SanitizerKind::KCFI) &&
1075
+ !CodeGenOpts.DisableCFICheck) {
1076
getModule().addModuleFlag(llvm::Module::Override, "kcfi", 1);
1077
// KCFI assumes patchable-function-prefix is the same for all indirectly
1078
// called functions. Store the expected offset for code generation.
0 commit comments