diff --git a/lib/CodeGen/RegisterScavenging.cpp b/lib/CodeGen/RegisterScavenging.cpp index b3326528807..bffa94a80a7 100644 --- a/lib/CodeGen/RegisterScavenging.cpp +++ b/lib/CodeGen/RegisterScavenging.cpp @@ -620,7 +620,7 @@ static unsigned scavengeVReg(MachineRegisterInfo &MRI, RegScavenger &RS, if (MO.isDef()) { const MachineInstr &MI = *MO.getParent(); if (!MI.readsRegister(VReg, &TRI)) { - assert(!RealDef || RealDef == &MI && + assert((!RealDef || RealDef == &MI) && "Can have at most one definition which is not a redefinition"); RealDef = &MI; }