[llvm] r190886 - Move variable into assert to avoid unused variable warning.
Eric Christopher
echristo at gmail.com
Tue Sep 17 14:13:58 PDT 2013
Author: echristo
Date: Tue Sep 17 16:13:57 2013
New Revision: 190886
URL: http://llvm.org/viewvc/llvm-project?rev=190886&view=rev
Log:
Move variable into assert to avoid unused variable warning.
Modified:
llvm/trunk/lib/Analysis/CostModel.cpp
Modified: llvm/trunk/lib/Analysis/CostModel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CostModel.cpp?rev=190886&r1=190885&r2=190886&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CostModel.cpp (original)
+++ llvm/trunk/lib/Analysis/CostModel.cpp Tue Sep 17 16:13:57 2013
@@ -156,8 +156,7 @@ static bool matchPairwiseReductionAtLeve
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);
More information about the llvm-commits
mailing list