aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-11-25 00:58:21 +0000
committerDale Johannesen <dalej@apple.com>2009-11-25 00:58:21 +0000
commit0106a0aafe8a169ad39736ddeb591ccde7cdca97 (patch)
tree166ba1c6a2cd1661eb14ea6d8af91e8f878fa118
parent5f222b18e3024a552c373646228d5a0033ad883f (diff)
Fix compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89824 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCFrameInfo.h8
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;
}
}