Skip to content

Commit a737a33

Browse files
committed
[clang][dataflow] Fix -Wrange-loop-construct in DataflowAnalysisContext.cpp (NFC)
/llvm-project/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp:247:10: note: use reference type 'const llvm::Sma llVector<Atom> &' to prevent copying for (const llvm::SmallVector<Atom> Class : Info.EquivalentAtoms) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ & 1 error generated.
1 parent 5db63d2 commit a737a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ void DataflowAnalysisContext::dumpFlowCondition(Atom Token,
244244
}
245245
if (!Info.EquivalentAtoms.empty()) {
246246
OS << "Equivalent atoms:\n";
247-
for (const llvm::SmallVector<Atom> Class : Info.EquivalentAtoms)
247+
for (const llvm::SmallVector<Atom> &Class : Info.EquivalentAtoms)
248248
printAtomList(Class, OS);
249249
}
250250

0 commit comments

Comments
 (0)