mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
A15SDOptimizer::getPrefSPRLane - fix null dereference warning. NFCI
This commit is contained in:
parent
6daaf620de
commit
50ba5815e2
@ -157,9 +157,8 @@ unsigned A15SDOptimizer::getPrefSPRLane(unsigned SReg) {
|
||||
MachineInstr *MI = MRI->getVRegDef(SReg);
|
||||
if (!MI) return ARM::ssub_0;
|
||||
MachineOperand *MO = MI->findRegisterDefOperand(SReg);
|
||||
|
||||
assert(MO->isReg() && "Non-register operand found!");
|
||||
if (!MO) return ARM::ssub_0;
|
||||
assert(MO->isReg() && "Non-register operand found!");
|
||||
|
||||
if (MI->isCopy() && usesRegClass(MI->getOperand(1),
|
||||
&ARM::SPRRegClass)) {
|
||||
|
Loading…
Reference in New Issue
Block a user