summaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-17 21:13:57 +0000
committerEric Christopher <echristo@gmail.com>2013-09-17 21:13:57 +0000
commit2bc3cd83b34b3f76dfb98940201f35464150fa9f (patch)
treed818100bac33ab057129265ff802351f9e9411f2 /lib/Analysis
parent3e1c40de7f33db639698982bb58d8c2c8d7d5780 (diff)
downloadllvm-2bc3cd83b34b3f76dfb98940201f35464150fa9f.tar.gz
llvm-2bc3cd83b34b3f76dfb98940201f35464150fa9f.tar.bz2
llvm-2bc3cd83b34b3f76dfb98940201f35464150fa9f.tar.xz
Move variable into assert to avoid unused variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/CostModel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/CostModel.cpp b/lib/Analysis/CostModel.cpp
index 6970b872c1..f943258469 100644
--- a/lib/Analysis/CostModel.cpp
+++ b/lib/Analysis/CostModel.cpp
@@ -156,8 +156,7 @@ static bool matchPairwiseReductionAtLevel(const BinaryOperator *BinOp,
if (BinOp == 0)
return false;
- Type *VecTy = BinOp->getType();
- assert(VecTy->isVectorTy() && "Expecting a vector type");
+ assert(BinOp->getType()->isVectorTy() && "Expecting a vector type");
unsigned Opcode = BinOp->getOpcode();
Value *L = BinOp->getOperand(0);