Skip to content

Commit

Permalink
[llvm] Make lambda take const reference to prevent unneeded copy (NFC)
Browse files Browse the repository at this point in the history
Closes #89198
  • Loading branch information
JOE1994 committed May 2, 2024
1 parent 9cd218e commit 9d4575c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/RDFGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ raw_ostream &operator<<(raw_ostream &OS, const Print<Block> &P) {
MachineBasicBlock *BB = P.Obj.Addr->getCode();
unsigned NP = BB->pred_size();
std::vector<int> Ns;
auto PrintBBs = [&OS](std::vector<int> Ns) -> void {
auto PrintBBs = [&OS](const std::vector<int> &Ns) -> void {
unsigned N = Ns.size();
for (int I : Ns) {
OS << "%bb." << I;
Expand Down

0 comments on commit 9d4575c

Please sign in to comment.