[clang] [StackProtector] Do not emit the stack protector on GPU architectures (PR #70799)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 31 06:27:20 PDT 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 562ce8bbd23d96ee64992bcda041bf67e7c51057 c1c5174d9a9bb82ba42de0aabd0a3e129cc87aa5 -- clang/lib/CodeGen/CodeGenModule.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 562f421aa2c3..db4e0d6552a4 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -761,7 +761,8 @@ static void setVisibilityFromDLLStorageClass(const clang::LangOptions &LO,
   }
 }
 
-static bool isStackProtectorOn(const LangOptions &LangOpts, const llvm::Triple &Triple,
+static bool isStackProtectorOn(const LangOptions &LangOpts,
+                               const llvm::Triple &Triple,
                                clang::LangOptions::StackProtectorMode Mode) {
   if (Triple.isAMDGPU() || Triple.isNVPTX())
     return false;

``````````

</details>


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


More information about the cfe-commits mailing list