diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -4360,11 +4360,8 @@ } void InnerLoopVectorizer::widenCallInstruction(CallInst &I) { - // Ignore dbg intrinsics. - // TODO: Debug intrinsics should be skipped/handled during VPlan construction - // rather than dropping them here. - if (isa(I)) - return; + assert(!isa(I) && + "DbgInfoIntrinsic should have been dropped during VPlan construction"); setDebugLocFromInst(Builder, &I); Module *M = I.getParent()->getParent()->getParent();