summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PowerPCPEI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCPEI.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCPEI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCPEI.cpp b/llvm/lib/Target/PowerPC/PowerPCPEI.cpp
index c2d47090e4b..eda17ac7082 100644
--- a/llvm/lib/Target/PowerPC/PowerPCPEI.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCPEI.cpp
@@ -170,7 +170,7 @@ void PPCPEI::calculateCallerSavedRegisters(MachineFunction &Fn) {
unsigned RegSize = RegInfo->getRegClass(RegsToSave[i])->getSize();
int FrameIdx;
- if (RegsToSave[i] == PPC32::LR) {
+ if (RegsToSave[i] == PPC::LR) {
FrameIdx = FFI->CreateFixedObject(RegSize, 8); // LR lives at +8
} else {
Offset -= RegSize;
OpenPOWER on IntegriCloud