[clang] Add /Zc:tlsGuards- option (PR #113830)

via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 27 12:06:53 PDT 2024


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 60d2feded5c0f55b21d042ee2f35227847d66ee0 b1b4da14386856667d11c284535348002954f94f --extensions cpp -- clang/lib/CodeGen/MicrosoftCXXABI.cpp clang/lib/Driver/ToolChains/Clang.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index da659fa4db..63d55d5ad6 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -7291,8 +7291,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
                         (!IsWindowsMSVC || IsMSVC2015Compatible)))
     CmdArgs.push_back("-fno-threadsafe-statics");
 
-  if (!Args.hasFlag(options::OPT_ftls_guards,
-                    options::OPT_fno_tls_guards, true))
+  if (!Args.hasFlag(options::OPT_ftls_guards, options::OPT_fno_tls_guards,
+                    true))
     CmdArgs.push_back("-fno-tls-guards");
 
   // Add -fno-assumptions, if it was specified.

``````````

</details>


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


More information about the cfe-commits mailing list