Fix compiler warnings.
authorDale Johannesen <dalej@apple.com>
Wed, 25 Nov 2009 00:58:21 +0000 (00:58 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 25 Nov 2009 00:58:21 +0000 (00:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89824 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCFrameInfo.h

index 4bf543a8d052de3bcf052ccc0f83d7637b9bc690..73d30bf5bed12a8592fff6c3aeede95cb93d5b45 100644 (file)
@@ -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;
       }
     }