diff --git a/lib/Target/PowerPC/PPCFrameInfo.h b/lib/Target/PowerPC/PPCFrameInfo.h index c72da9ad26a..3c7777cecca 100644 --- a/lib/Target/PowerPC/PPCFrameInfo.h +++ b/lib/Target/PowerPC/PPCFrameInfo.h @@ -36,7 +36,7 @@ public: const std::pair * getCalleeSaveSpillSlots(unsigned &NumEntries) const { NumEntries = 1; - return static_cast *>(LR); + return &LR[0]; } };