projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34ad6db
)
Fix a GCC warning.
author
Jay Foad
<jay.foad@gmail.com>
Wed, 20 Jul 2011 08:15:21 +0000
(08:15 +0000)
committer
Jay Foad
<jay.foad@gmail.com>
Wed, 20 Jul 2011 08:15:21 +0000
(08:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135581
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/IndVarSimplify.cpp
b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 50140d925984eca768bd9a1afb8f1dc323de8e98..24d996c95ac3b192442bafd96da9a4b2073f754f 100644
(file)
--- a/
lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/
lib/Transforms/Scalar/IndVarSimplify.cpp
@@
-240,8
+240,8
@@
static Instruction *getInsertPointForUses(Instruction *User, Value *Def,
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;
}