Skip to content

Commit c9601a3

Browse files
committed
Fix an implicit pointer-to-bool conversion
... which silently caused the wrong overload to be selected.
1 parent 82d460b commit c9601a3

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)