Skip to content

Commit

Permalink
[indvars] Missing variables at Og:
Browse files Browse the repository at this point in the history
https://bugs.llvm.org/show_bug.cgi?id=51735
llvm#51077

Address @OCHyams comments about DbgUsers type.
- Converted to 'const SmallVectorImpl reference'.
  • Loading branch information
CarlosAlbertoEnciso committed May 22, 2024
1 parent 0d06af2 commit a1014a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llvm/include/llvm/Analysis/LoopInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,10 @@ class LLVM_EXTERNAL_VISIBILITY Loop : public LoopBase<BasicBlock, Loop> {
/// 'indvars' pass if the loop can deleted. Those debug users will be used
/// by the 'loop-delete' pass.
void preserveDebugInductionVariableInfo(
Value *FinalValue, SmallVector<DbgVariableIntrinsic *> DbgUsers) {
Value *FinalValue,
const SmallVectorImpl<DbgVariableIntrinsic *> &DbgUsers) {
IndVarFinalValue = FinalValue;
for (DbgVariableIntrinsic *DebugUser : DbgUsers)
for (auto &DebugUser : DbgUsers)
IndVarDebugUsers.push_back(DebugUser);
}

Expand Down

0 comments on commit a1014a9

Please sign in to comment.