diff options
author | jeremyd2019 <github@jdrake.com> | 2025-07-29 10:01:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-29 10:01:04 -0700 |
commit | 28b319005371afa1392fb405c53139c4ae2b3066 (patch) | |
tree | cdebd122322f6176f74cc55f884412e8cffba47a /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | dc6d7f0637e7c80e39e8b7f0e8b61515b4961b0f (diff) | |
download | llvm-28b319005371afa1392fb405c53139c4ae2b3066.zip llvm-28b319005371afa1392fb405c53139c4ae2b3066.tar.gz llvm-28b319005371afa1392fb405c53139c4ae2b3066.tar.bz2 |
[LLVM][Cygwin] Enable conditions that are shared with MinGW (#149638)
Cygwin and MinGW share the auto import behavior that could result in
__stack_check_guard being non-dso-local. Allow windres to assume a
Cygwin target as well as a MinGW one, so defines like _WIN32 would not
be present on Cygwin.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 68b8a00..3c91b0e 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -2062,7 +2062,7 @@ void TargetLoweringBase::insertSSPDeclarations(Module &M) const { // FreeBSD has "__stack_chk_guard" defined externally on libc.so if (M.getDirectAccessExternalData() && - !TM.getTargetTriple().isWindowsGNUEnvironment() && + !TM.getTargetTriple().isOSCygMing() && !(TM.getTargetTriple().isPPC64() && TM.getTargetTriple().isOSFreeBSD()) && (!TM.getTargetTriple().isOSDarwin() || |