[llvm] [AArch64][PAC] Fix an implicit pointer-to-bool conversion (PR #165056)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 24 16:32:12 PDT 2025


https://github.com/jroelofs created https://github.com/llvm/llvm-project/pull/165056

... which silently caused the wrong overload to be selected.

>From d650d5b501cec67d03510d19ee6d6dc963fe7b15 Mon Sep 17 00:00:00 2001
From: Jon Roelofs <jonathan_roelofs at apple.com>
Date: Fri, 24 Oct 2025 16:30:15 -0700
Subject: [PATCH] [AArch64][PAC] Fix an implicit pointer-to-bool conversion

... which silently caused the wrong overload to be selected.
---
 llvm/lib/Target/AArch64/AArch64InstrInfo.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index d5117da524231..791e9311e581a 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -122,7 +122,7 @@ unsigned AArch64InstrInfo::getInstSizeInBytes(const MachineInstr &MI) const {
     NumBytes = Desc.getSize() ? Desc.getSize() : 4;
 
     const auto *MFI = MF->getInfo<AArch64FunctionInfo>();
-    if (!MFI->shouldSignReturnAddress(MF))
+    if (!MFI->shouldSignReturnAddress(*MF))
       return NumBytes;
 
     const auto &STI = MF->getSubtarget<AArch64Subtarget>();



More information about the llvm-commits mailing list