From bfe6b35c7079495a418cf247ef3bec828b8abce9 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 16 Sep 2019 10:48:16 +0000 Subject: [SLPVectorizer] Assert that we find a LastInst to silence analyzer null dereference warning. NFCI. llvm-svn: 371974 --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib') diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index a9d8649ce75..12c114f83d4 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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. -- cgit v1.2.3