[llvm] [CodeGen] Diagnose unsupported landingpad result types instead of asserting (PR #223205)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 13 02:50:05 PDT 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,h -- llvm/include/llvm/CodeGen/Analysis.h llvm/lib/CodeGen/Analysis.cpp llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.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/include/llvm/CodeGen/Analysis.h b/llvm/include/llvm/CodeGen/Analysis.h
index a68dac6f6..4ee4f39b5 100644
--- a/llvm/include/llvm/CodeGen/Analysis.h
+++ b/llvm/include/llvm/CodeGen/Analysis.h
@@ -99,7 +99,8 @@ LLVM_ABI void computeValueLLTs(const DataLayout &DL, Type &Ty,
LLVM_ABI GlobalValue *ExtractTypeInfo(Value *V);
/// Return true if landingpad result type \p Ty is a struct of an exception
-/// pointer (pointer or integer) and an integer selector, the only lowerable form.
+/// pointer (pointer or integer) and an integer selector, the only lowerable
+/// form.
LLVM_ABI bool isExceptionPointerAndSelectorType(Type *Ty);
/// getFCmpCondCode - Return the ISD condition code corresponding to
``````````
</details>
https://github.com/llvm/llvm-project/pull/223205
More information about the llvm-commits
mailing list