[llvm] [AsmParser] Remove unnecessary casts (NFC) (PR #146549)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 11:26:58 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/AsmParser/LLParser.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 145b90337..bb41f5360 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -1235,11 +1235,11 @@ bool LLParser::parseAliasOrIFunc(const std::string &Name, unsigned NameID,
   GlobalValue *GV;
   if (IsAlias) {
     GA.reset(GlobalAlias::create(Ty, AddrSpace, Linkage, Name, Aliasee,
-                                 /*Parent*/nullptr));
+                                 /*Parent*/ nullptr));
     GV = GA.get();
   } else {
     GI.reset(GlobalIFunc::create(Ty, AddrSpace, Linkage, Name, Aliasee,
-                                 /*Parent*/nullptr));
+                                 /*Parent*/ nullptr));
     GV = GI.get();
   }
   GV->setThreadLocalMode(TLM);

``````````

</details>


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


More information about the llvm-commits mailing list