From: Dale Johannesen Date: Wed, 25 Nov 2009 00:58:21 +0000 (+0000) Subject: Fix compiler warnings. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0106a0aafe8a169ad39736ddeb591ccde7cdca97;p=oota-llvm.git Fix compiler warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89824 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; } }