[llvm] r274497 - Fixed warning caused by r274402.
Eric Liu via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 4 05:10:08 PDT 2016
Author: ioeric
Date: Mon Jul 4 07:10:08 2016
New Revision: 274497
URL: http://llvm.org/viewvc/llvm-project?rev=274497&view=rev
Log:
Fixed warning caused by r274402.
Modified:
llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp
Modified: llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp?rev=274497&r1=274496&r2=274497&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp (original)
+++ llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp Mon Jul 4 07:10:08 2016
@@ -1886,11 +1886,11 @@ ValueTrackerResult ValueTracker::getNext
ValueTrackerResult ValueTracker::getNextSourceImpl() {
assert(Def && "This method needs a valid definition");
- assert(
- (Def->getOperand(DefIdx).isDef() &&
- (DefIdx < Def->getDesc().getNumDefs() || Def->getDesc().isVariadic()) ||
- Def->getOperand(DefIdx).isImplicit()) &&
- "Invalid DefIdx");
+ assert(((Def->getOperand(DefIdx).isDef() &&
+ (DefIdx < Def->getDesc().getNumDefs() ||
+ Def->getDesc().isVariadic())) ||
+ Def->getOperand(DefIdx).isImplicit()) &&
+ "Invalid DefIdx");
if (Def->isCopy())
return getNextSourceFromCopy();
if (Def->isBitcast())
More information about the llvm-commits
mailing list