aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2013-04-01 18:13:05 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2013-04-01 18:13:05 +0000
commitad26993e1a9b147c3ca4b170ab2eba260f89a1ac (patch)
treeb3d65702ef7fa712ed88ab6840977dc172e4521a /lib
parentf28a29b776b7dc2b97d09c75d69494f862c216b3 (diff)
Correct assertion condition
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/Reassociate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp
index 493930b388..1f343136e5 100644
--- a/lib/Transforms/Scalar/Reassociate.cpp
+++ b/lib/Transforms/Scalar/Reassociate.cpp
@@ -199,7 +199,7 @@ namespace {
}
XorOpnd::XorOpnd(Value *V) {
- assert(!isa<Constant>(V) && "No constant");
+ assert(!isa<ConstantInt>(V) && "No ConstantInt");
OrigVal = V;
Instruction *I = dyn_cast<Instruction>(V);
SymbolicRank = 0;