diff --git a/lib/Target/Hexagon/HexagonFrameLowering.cpp b/lib/Target/Hexagon/HexagonFrameLowering.cpp index 84417ae8b24..ee025137dc0 100644 --- a/lib/Target/Hexagon/HexagonFrameLowering.cpp +++ b/lib/Target/Hexagon/HexagonFrameLowering.cpp @@ -1006,7 +1006,7 @@ static void dump_registers(BitVector &Regs, const TargetRegisterInfo &TRI) { bool HexagonFrameLowering::assignCalleeSavedSpillSlots(MachineFunction &MF, const TargetRegisterInfo *TRI, std::vector &CSI) const { DEBUG(dbgs() << LLVM_FUNCTION_NAME << " on " - << MF.getFunction().getName() << '\n'); + << MF.getFunction()->getName() << '\n'); MachineFrameInfo *MFI = MF.getFrameInfo(); BitVector SRegs(Hexagon::NUM_TARGET_REGS);