[all-commits] [llvm/llvm-project] bb64fd: [SelectionDAGBuilder] Use SmallVectorImpl& for fun...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Apr 3 14:11:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb64fd571bce276e89d597ff9992cf2128afc67c
      https://github.com/llvm/llvm-project/commit/bb64fd571bce276e89d597ff9992cf2128afc67c
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-04-03 (Mon, 03 Apr 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h

  Log Message:
  -----------
  [SelectionDAGBuilder] Use SmallVectorImpl& for function arguments. NFC

Make the reference const since we aren't modifying the vectors.


  Commit: de92a2013196d9119a5cf33e9a18d4b8a8d1e3df
      https://github.com/llvm/llvm-project/commit/de92a2013196d9119a5cf33e9a18d4b8a8d1e3df
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-04-03 (Mon, 03 Apr 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

  Log Message:
  -----------
  [SelectionDAG] Move variable declaration to its first assignment. NFC

We declared this variable and assigned it to true, but then overwrote
it before its first use.


Compare: https://github.com/llvm/llvm-project/compare/d7b2003761a2...de92a2013196


More information about the All-commits mailing list