[llvm] r371974 - [SLPVectorizer] Assert that we find a LastInst to silence analyzer null dereference warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 16 03:48:16 PDT 2019


Author: rksimon
Date: Mon Sep 16 03:48:16 2019
New Revision: 371974

URL: http://llvm.org/viewvc/llvm-project?rev=371974&view=rev
Log:
[SLPVectorizer] Assert that we find a LastInst to silence analyzer null dereference warning. NFCI.

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=371974&r1=371973&r2=371974&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Mon Sep 16 03:48:16 2019
@@ -3528,6 +3528,7 @@ void BoUpSLP::setInsertPointAfterBundle(
         break;
     }
   }
+  assert(LastInst && "Failed to find last instruction in bundle");
 
   // Set the insertion point after the last instruction in the bundle. Set the
   // debug location to Front.




More information about the llvm-commits mailing list