[llvm] [SelectionDAG] Not issue TRAP node if naked function (PR #132147)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 20 11:10:04 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 fecd937910f640663885e0434bfed80cf4574072 c75fc1ba264383df257ae49f4085c053f96f62e6 --extensions cpp,h -- llvm/include/llvm/IR/Instructions.h llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp llvm/lib/CodeGen/SelectionDAG/FastISel.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/IR/Instructions.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index a709300d5e..fa86dffd31 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -3143,7 +3143,8 @@ bool IRTranslator::translateVAArg(const User &U, MachineIRBuilder &MIRBuilder) {
   return true;
 }
 
-bool IRTranslator::translateUnreachable(const User &U, MachineIRBuilder &MIRBuilder) {
+bool IRTranslator::translateUnreachable(const User &U,
+                                        MachineIRBuilder &MIRBuilder) {
   auto &UI = cast<UnreachableInst>(U);
   if (!UI.allowISelLowering(MF->getTarget().Options.TrapUnreachable,
                             MF->getTarget().Options.NoTrapAfterNoreturn))

``````````

</details>


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


More information about the llvm-commits mailing list