forked from OSchip/llvm-project
Fixed the warning introduced by r305625 to make ubuntu-gcc7.1-werror bot green.
llvm-svn: 305640
This commit is contained in:
parent
b70ddd8901
commit
90e4c3f357
|
@ -620,7 +620,7 @@ static unsigned scavengeVReg(MachineRegisterInfo &MRI, RegScavenger &RS,
|
||||||
if (MO.isDef()) {
|
if (MO.isDef()) {
|
||||||
const MachineInstr &MI = *MO.getParent();
|
const MachineInstr &MI = *MO.getParent();
|
||||||
if (!MI.readsRegister(VReg, &TRI)) {
|
if (!MI.readsRegister(VReg, &TRI)) {
|
||||||
assert(!RealDef || RealDef == &MI &&
|
assert((!RealDef || RealDef == &MI) &&
|
||||||
"Can have at most one definition which is not a redefinition");
|
"Can have at most one definition which is not a redefinition");
|
||||||
RealDef = &MI;
|
RealDef = &MI;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue