[llvm] r305640 - Fixed the warning introduced by r305625 to make ubuntu-gcc7.1-werror bot green.
Galina Kistanova via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 17 14:05:28 PDT 2017
Author: gkistanova
Date: Sat Jun 17 16:05:28 2017
New Revision: 305640
URL: http://llvm.org/viewvc/llvm-project?rev=305640&view=rev
Log:
Fixed the warning introduced by r305625 to make ubuntu-gcc7.1-werror bot green.
Modified:
llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterScavenging.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterScavenging.cpp?rev=305640&r1=305639&r2=305640&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterScavenging.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterScavenging.cpp Sat Jun 17 16:05:28 2017
@@ -620,7 +620,7 @@ static unsigned scavengeVReg(MachineRegi
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;
}
More information about the llvm-commits
mailing list