[clang] [Clang][Driver] Skip empty strings in getAArch64MultilibFlags (PR #97827)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 5 07:23:04 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 18b575d4aac603b6acd3fa0d639fbc79cd4f0ac3 8b39cbbdbe3646062dd1cdb60eab18339f9ca490 -- clang/test/Driver/aarch64-multilib-rcpc3.c clang/lib/Driver/ToolChain.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
index 9ac428caab..85ae4d2a26 100644
--- a/clang/lib/Driver/ToolChain.cpp
+++ b/clang/lib/Driver/ToolChain.cpp
@@ -229,7 +229,7 @@ static void getARMMultilibFlags(const Driver &D,
for (const auto &Ext : ARM::ARCHExtNames)
if (!Ext.Name.empty())
if (FeatureSet.contains(Ext.NegFeature))
- MArch.push_back(("no" + Ext.Name).str());
+ MArch.push_back(("no" + Ext.Name).str());
MArch.insert(MArch.begin(), ("-march=" + Triple.getArchName()).str());
Result.push_back(llvm::join(MArch, "+"));
``````````
</details>
https://github.com/llvm/llvm-project/pull/97827
More information about the cfe-commits
mailing list