[llvm-commits] [llvm] r89824 - /llvm/trunk/lib/Target/PowerPC/PPCFrameInfo.h
Dale Johannesen
dalej at apple.com
Tue Nov 24 16:58:21 PST 2009
Author: johannes
Date: Tue Nov 24 18:58:21 2009
New Revision: 89824
URL: http://llvm.org/viewvc/llvm-project?rev=89824&view=rev
Log:
Fix compiler warnings.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCFrameInfo.h
Modified: llvm/trunk/lib/Target/PowerPC/PPCFrameInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCFrameInfo.h?rev=89824&r1=89823&r2=89824&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCFrameInfo.h (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCFrameInfo.h Tue Nov 24 18:58:21 2009
@@ -94,11 +94,11 @@
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;
}
}
More information about the llvm-commits
mailing list