diff options
author | dim <dim@FreeBSD.org> | 2017-05-08 16:06:20 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2017-05-08 16:06:20 +0000 |
commit | 58a6329180d96e17b70ac7d62ea378b940638244 (patch) | |
tree | 617f649902513ad942a7bab6b819652dcecba99f /contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | |
parent | 7274cf4b3fe3e7b782f1cb885a10646f5005f593 (diff) | |
download | FreeBSD-src-58a6329180d96e17b70ac7d62ea378b940638244.zip FreeBSD-src-58a6329180d96e17b70ac7d62ea378b940638244.tar.gz |
MFC r317810:
Pull in r302183 from upstream llvm trunk (by Krzysztof Parzyszek):
[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.
Reported by: Mark Millard
PR: 206990
Diffstat (limited to 'contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp')
-rw-r--r-- | contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp b/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp index e786ef9..2c4b17a 100644 --- a/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp +++ b/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp @@ -1467,8 +1467,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); |