diff --git a/lib/Target/PowerPC/PPCFrameInfo.h b/lib/Target/PowerPC/PPCFrameInfo.h index 4bf543a8d05..73d30bf5bed 100644 --- a/lib/Target/PowerPC/PPCFrameInfo.h +++ b/lib/Target/PowerPC/PPCFrameInfo.h @@ -94,11 +94,11 @@ public: if (TM.getSubtarget().isDarwinABI()) { NumEntries = 1; if (TM.getSubtarget().isPPC64()) { - static const SpillSlot darwin64Offsets[] = {PPC::X31, -8}; - return darwin64Offsets; + static const SpillSlot darwin64Offsets = {PPC::X31, -8}; + return &darwin64Offsets; } else { - static const SpillSlot darwinOffsets[] = {PPC::R31, -4}; - return darwinOffsets; + static const SpillSlot darwinOffsets = {PPC::R31, -4}; + return &darwinOffsets; } }