]> granicus.if.org Git - llvm/commitdiff
[SLPVectorizer] Assert that we find a LastInst to silence analyzer null dereference...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 16 Sep 2019 10:48:16 +0000 (10:48 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 16 Sep 2019 10:48:16 +0000 (10:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371974 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index a9d8649ce751c564993ce21652e7cb68cbc3fb96..12c114f83d4bee41d58943fc44838140669c9580 100644 (file)
@@ -3528,6 +3528,7 @@ void BoUpSLP::setInsertPointAfterBundle(TreeEntry *E) {
         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.