[llvm] CodeGen: Remove overrides of getSSPStackGuardCheck (PR #164044)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 18 16:02:11 PDT 2025


================
@@ -640,15 +640,6 @@ void X86TargetLowering::insertSSPDeclarations(Module &M) const {
   TargetLowering::insertSSPDeclarations(M);
 }
 
-Function *X86TargetLowering::getSSPStackGuardCheck(const Module &M) const {
-  // MSVC CRT has a function to validate security cookie.
-  if (Subtarget.getTargetTriple().isWindowsMSVCEnvironment() ||
-      Subtarget.getTargetTriple().isWindowsItaniumEnvironment()) {
-    return M.getFunction("__security_check_cookie");
----------------
arsenm wrote:

The condition is when the call is added to the target's SystemRuntimeLibrary. The predicate is in tablegen

https://github.com/llvm/llvm-project/pull/164044


More information about the llvm-commits mailing list