Fix a warning.
authorNadav Rotem <nrotem@apple.com>
Thu, 11 Jul 2013 05:39:02 +0000 (05:39 +0000)
committerNadav Rotem <nrotem@apple.com>
Thu, 11 Jul 2013 05:39:02 +0000 (05:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186064 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index e25befbc39ef4853a82e24c6dec3d405e82aa999..751ed1abf2e7f1a18a775562aaed2549e207757c 100644 (file)
@@ -1361,8 +1361,7 @@ void BoUpSLP::vectorizeTree() {
       if (Entry->NeedToGather)
         continue;
 
-      Value *Vec = Entry->VectorizedValue;
-      assert(Vec && "Can't find vectorizable value");
+      assert(Entry->VectorizedValue && "Can't find vectorizable value");
 
       Type *Ty = Scalar->getType();
       if (!Ty->isVoidTy()) {