[llvm] [AArch64] Null check TargetStreamer before emitting .variant_pcs (PR #138924)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 02:11:29 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/Target/AArch64/AArch64AsmPrinter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
index f8ecff1ce..5e4ddb898 100644
--- a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
+++ b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
@@ -1372,8 +1372,8 @@ void AArch64AsmPrinter::emitFunctionEntryLabel() {
MF->getFunction().getCallingConv() ==
CallingConv::AArch64_SVE_VectorCall ||
MF->getInfo<AArch64FunctionInfo>()->isSVECC()) {
- if (auto *TS =
- static_cast<AArch64TargetStreamer *>(OutStreamer->getTargetStreamer()))
+ if (auto *TS = static_cast<AArch64TargetStreamer *>(
+ OutStreamer->getTargetStreamer()))
TS->emitDirectiveVariantPCS(CurrentFnSym);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/138924
More information about the llvm-commits
mailing list