[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

Nathan Chancellor via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 3 08:54:50 PDT 2024


================
@@ -3605,7 +3605,8 @@ static void RenderSSPOptions(const Driver &D, const ToolChain &TC,
     StringRef Value = A->getValue();
     if (!EffectiveTriple.isX86() && !EffectiveTriple.isAArch64() &&
         !EffectiveTriple.isARM() && !EffectiveTriple.isThumb() &&
-        !EffectiveTriple.isRISCV())
+        !EffectiveTriple.isRISCV() && !EffectiveTriple.isPPC64() &&
+        !EffectiveTriple.isPPC32())
----------------
nathanchance wrote:

Any reason not to use `EffectiveTriple.isPPC()` instead of both `EffectiveTriple.isPPC32()` and `EffectiveTriple.isPPC64()`?

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


More information about the cfe-commits mailing list