summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:48:51 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:48:51 +0000
commit98ab4c64c429583a097adf98ae35ac4dd1dc2556 (patch)
tree70bfc17504073c2113cb0bc4fc6a5a8d9dfee583 /llvm/lib/Target/Sparc
parentc0197066d786db4d04baadacfb3a88244e0026f4 (diff)
downloadbcm5719-llvm-98ab4c64c429583a097adf98ae35ac4dd1dc2556.tar.gz
bcm5719-llvm-98ab4c64c429583a097adf98ae35ac4dd1dc2556.zip
Revert r301231: Accidentally committed stale files
I forgot to commit local changes before commit. llvm-svn: 301232
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/SparcISelLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
index d902ff3a5b0..455d1ee1564 100644
--- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
@@ -3234,7 +3234,6 @@ SparcTargetLowering::emitEHSjLjSetJmp(MachineInstr &MI,
MachineBasicBlock *MBB) const {
DebugLoc DL = MI.getDebugLoc();
const TargetInstrInfo *TII = Subtarget->getInstrInfo();
- const TargetRegisterInfo *TRI = Subtarget->getRegisterInfo();
MachineFunction *MF = MBB->getParent();
MachineRegisterInfo &MRI = MF->getRegInfo();
@@ -3246,8 +3245,7 @@ SparcTargetLowering::emitEHSjLjSetJmp(MachineInstr &MI,
unsigned DstReg = MI.getOperand(0).getReg();
const TargetRegisterClass *RC = MRI.getRegClass(DstReg);
- assert(TRI->hasType(*RC, MVT::i32) && "Invalid destination!");
- (void)TRI;
+ assert(RC->hasType(MVT::i32) && "Invalid destination!");
unsigned mainDstReg = MRI.createVirtualRegister(RC);
unsigned restoreDstReg = MRI.createVirtualRegister(RC);
OpenPOWER on IntegriCloud