[llvm] [FastISel] Lower call instruction with illegal type returned (PR #180322)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 23:03:09 PST 2026


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 origin/main HEAD --extensions cpp -- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/Target/X86/X86FastISel.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index ee96ba2c5..2aecb51f1 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -3200,8 +3200,8 @@ bool X86FastISel::fastLowerCall(CallLoweringInfo &CLI) {
   bool Is64Bit        = Subtarget->is64Bit();
   bool IsWin64        = Subtarget->isCallingConvWin64(CC);
 
-  // If the return type is illegal, don't bother to promote it, just fall back to
-  // DAG ISel.
+  // If the return type is illegal, don't bother to promote it, just fall back
+  // to DAG ISel.
   MVT RetVT;
   if (!isTypeLegal(CLI.RetTy, RetVT) && !CLI.RetTy->isVoidTy())
     return false;

``````````

</details>


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


More information about the llvm-commits mailing list