[all-commits] [llvm/llvm-project] a737a3: [clang][dataflow] Fix -Wrange-loop-construct in Da...

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Tue Nov 7 06:33:28 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a737a33eb995cf704f8ae9653811ca503d77ed65
      https://github.com/llvm/llvm-project/commit/a737a33eb995cf704f8ae9653811ca503d77ed65
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-11-07 (Tue, 07 Nov 2023)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list