[llvm] [CodeGen][ARM64EC] Mangle EH personality handler names (PR #121652)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 4 08:39:28 PST 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 8630a7ba7c13f43a4dabd64d4ae0495e90f3b644 05019aca4704dd8d03eb08e087483c8529be9cc3 --extensions cpp -- llvm/lib/IR/EHPersonalities.cpp llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp b/llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp
index f33cc5b683..35af9ba626 100644
--- a/llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp
@@ -808,10 +808,11 @@ bool AArch64Arm64ECCallLowering::runOnModule(Module &Mod) {
for (Function &F : Mod) {
if (F.hasPersonalityFn()) {
- GlobalValue *PersFn = dyn_cast<GlobalValue>(F.getPersonalityFn()->stripPointerCasts());
+ GlobalValue *PersFn =
+ dyn_cast<GlobalValue>(F.getPersonalityFn()->stripPointerCasts());
if (PersFn->getValueType() && PersFn->getValueType()->isFunctionTy()) {
if (std::optional<std::string> MangledName =
- getArm64ECMangledFunctionName(PersFn->getName().str())) {
+ getArm64ECMangledFunctionName(PersFn->getName().str())) {
PersFn->setName(MangledName.value());
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/121652
More information about the llvm-commits
mailing list