diff options
author | Eric Christopher <echristo@gmail.com> | 2013-09-17 21:13:57 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-09-17 21:13:57 +0000 |
commit | e7af7bd8d0da8a1895f5af33008386efcbb4052f (patch) | |
tree | 80784be92fbfc89ca2ea0fe067187cf05638f556 /llvm/lib/Analysis/CostModel.cpp | |
parent | e6952f28ca31bf8b303e297f727fbad3875a8f26 (diff) | |
download | bcm5719-llvm-e7af7bd8d0da8a1895f5af33008386efcbb4052f.tar.gz bcm5719-llvm-e7af7bd8d0da8a1895f5af33008386efcbb4052f.zip |
Move variable into assert to avoid unused variable warning.
llvm-svn: 190886
Diffstat (limited to 'llvm/lib/Analysis/CostModel.cpp')
-rw-r--r-- | llvm/lib/Analysis/CostModel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/CostModel.cpp b/llvm/lib/Analysis/CostModel.cpp index 6970b872c14..f9432584691 100644 --- a/llvm/lib/Analysis/CostModel.cpp +++ b/llvm/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); |