diff options
-rw-r--r-- | lib/Target/PowerPC/PPCFrameInfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCFrameInfo.h b/lib/Target/PowerPC/PPCFrameInfo.h index 4bf543a8d0..73d30bf5be 100644 --- a/lib/Target/PowerPC/PPCFrameInfo.h +++ b/lib/Target/PowerPC/PPCFrameInfo.h @@ -94,11 +94,11 @@ public: if (TM.getSubtarget<PPCSubtarget>().isDarwinABI()) { NumEntries = 1; if (TM.getSubtarget<PPCSubtarget>().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; } } |