[llvm-commits] [llvm] r135581 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Jay Foad
jay.foad at gmail.com
Wed Jul 20 01:15:21 PDT 2011
Author: foad
Date: Wed Jul 20 03:15:21 2011
New Revision: 135581
URL: http://llvm.org/viewvc/llvm-project?rev=135581&view=rev
Log:
Fix a GCC warning.
Modified:
llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=135581&r1=135580&r2=135581&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Wed Jul 20 03:15:21 2011
@@ -240,8 +240,8 @@
InsertPt = InsertBB->getTerminator();
}
assert(InsertPt && "Missing phi operand");
- assert(!isa<Instruction>(Def) ||
- DT->dominates(cast<Instruction>(Def), InsertPt) &&
+ assert((!isa<Instruction>(Def) ||
+ DT->dominates(cast<Instruction>(Def), InsertPt)) &&
"def does not dominate all uses");
return InsertPt;
}
More information about the llvm-commits
mailing list