[llvm] r186064 - Fix a warning.

Nadav Rotem nrotem at apple.com
Wed Jul 10 22:39:03 PDT 2013


Author: nadav
Date: Thu Jul 11 00:39:02 2013
New Revision: 186064

URL: http://llvm.org/viewvc/llvm-project?rev=186064&view=rev
Log:
Fix a warning.

Modified:
    llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=186064&r1=186063&r2=186064&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Thu Jul 11 00:39:02 2013
@@ -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()) {





More information about the llvm-commits mailing list