[llvm] [AArch64][AsmParser] Directives should clear transitively implied features (PR #106625)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 04:44:29 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 26b0bef192be1a3adc250af460c2e728a1ca5a64 daca0cf965f082076c724510f91e877825fc22e4 --extensions cpp -- llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index 5b9c5b6c20..34c0fad45f 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -6991,7 +6991,8 @@ bool AArch64AsmParser::parseDirectiveArch(SMLoc L) {
bool EnableFeature = !Name.consume_front_insensitive("no");
auto It = llvm::find_if(ExtensionMap, [&Name](const auto &Extension) {
- return Extension.Name == Name; });
+ return Extension.Name == Name;
+ });
if (It == std::end(ExtensionMap))
Error(CurLoc, "unsupported architectural extension: " + Name);
@@ -7025,7 +7026,8 @@ bool AArch64AsmParser::parseDirectiveArchExtension(SMLoc L) {
}
auto It = llvm::find_if(ExtensionMap, [&Name](const auto &Extension) {
- return Extension.Name == Name; });
+ return Extension.Name == Name;
+ });
if (It == std::end(ExtensionMap))
return Error(ExtLoc, "unsupported architectural extension: " + Name);
@@ -7074,7 +7076,8 @@ bool AArch64AsmParser::parseDirectiveCPU(SMLoc L) {
bool EnableFeature = !Name.consume_front_insensitive("no");
auto It = llvm::find_if(ExtensionMap, [&Name](const auto &Extension) {
- return Extension.Name == Name; });
+ return Extension.Name == Name;
+ });
if (It == std::end(ExtensionMap))
Error(CurLoc, "unsupported architectural extension: " + Name);
``````````
</details>
https://github.com/llvm/llvm-project/pull/106625
More information about the llvm-commits
mailing list