Fix compiler warnings.

llvm-svn: 89824
This commit is contained in:
Dale Johannesen 2009-11-25 00:58:21 +00:00
parent fa2741e0d3
commit e0eb336588
1 changed files with 4 additions and 4 deletions

View 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;
}
}