Skip to content

Commit 85b2d60

Browse files
jroelofsDebadri Basak
authored andcommitted
[AArch64][PAC] Fix an implicit pointer-to-bool conversion (llvm#165056)
... which silently caused the wrong overload to be selected.
1 parent 83eda71 commit 85b2d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ unsigned AArch64InstrInfo::getInstSizeInBytes(const MachineInstr &MI) const {
122122
NumBytes = Desc.getSize() ? Desc.getSize() : 4;
123123

124124
const auto *MFI = MF->getInfo<AArch64FunctionInfo>();
125-
if (!MFI->shouldSignReturnAddress(MF))
125+
if (!MFI->shouldSignReturnAddress(*MF))
126126
return NumBytes;
127127

128128
const auto &STI = MF->getSubtarget<AArch64Subtarget>();

0 commit comments

Comments
 (0)