diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h index e8370bbea5735c7..28c888f0c9a1c40 100644 --- a/llvm/include/llvm/Analysis/LoopInfo.h +++ b/llvm/include/llvm/Analysis/LoopInfo.h @@ -398,9 +398,10 @@ class LLVM_EXTERNAL_VISIBILITY Loop : public LoopBase { /// 'indvars' pass if the loop can deleted. Those debug users will be used /// by the 'loop-delete' pass. void preserveDebugInductionVariableInfo( - Value *FinalValue, SmallVector DbgUsers) { + Value *FinalValue, + const SmallVectorImpl &DbgUsers) { IndVarFinalValue = FinalValue; - for (DbgVariableIntrinsic *DebugUser : DbgUsers) + for (auto &DebugUser : DbgUsers) IndVarDebugUsers.push_back(DebugUser); }