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

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 29 12:48:07 PDT 2025


Author: Jon Roelofs
Date: 2025-10-29T12:48:03-07:00
New Revision: 9d1b6eec60490c09ab8367667fb70637695179c3

URL: https://github.com/llvm/llvm-project/commit/9d1b6eec60490c09ab8367667fb70637695179c3
DIFF: https://github.com/llvm/llvm-project/commit/9d1b6eec60490c09ab8367667fb70637695179c3.diff

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

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

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index 457e5402e0f46..ccc8eb8a9706d 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