summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-05-04 19:14:54 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-05-04 19:14:54 +0000
commit038a0546dbbaf4d2be3417fd60e89af6c2bff4e3 (patch)
tree55f92f70c8301b393ec8a5134f972798c00a42f8 /llvm/lib
parent5be171f0bd795e74dc5396d1573153fadd0eddcc (diff)
downloadbcm5719-llvm-038a0546dbbaf4d2be3417fd60e89af6c2bff4e3.tar.gz
bcm5719-llvm-038a0546dbbaf4d2be3417fd60e89af6c2bff4e3.zip
[PPC] When restoring R30 (PIC base pointer), mark it as <def>
This happened on the PPC32/SVR4 path and was discovered when building FreeBSD on PPC32. It was a typo-class error in the frame lowering code. This fixes PR26519. llvm-svn: 302183
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCFrameLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
index 2a402deccbc..40bfe3a449f 100644
--- a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
@@ -1459,8 +1459,7 @@ void PPCFrameLowering::emitEpilogue(MachineFunction &MF,
}
if (FI->usesPICBase())
- BuildMI(MBB, MBBI, dl, LoadInst)
- .addReg(PPC::R30)
+ BuildMI(MBB, MBBI, dl, LoadInst, PPC::R30)
.addImm(PBPOffset)
.addReg(RBReg);
OpenPOWER on IntegriCloud