Skip to content

Commit 9d4575c

Browse files
committed
[llvm] Make lambda take const reference to prevent unneeded copy (NFC)
Closes #89198
1 parent 9cd218e commit 9d4575c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/RDFGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ raw_ostream &operator<<(raw_ostream &OS, const Print<Block> &P) {
264264
MachineBasicBlock *BB = P.Obj.Addr->getCode();
265265
unsigned NP = BB->pred_size();
266266
std::vector<int> Ns;
267-
auto PrintBBs = [&OS](std::vector<int> Ns) -> void {
267+
auto PrintBBs = [&OS](const std::vector<int> &Ns) -> void {
268268
unsigned N = Ns.size();
269269
for (int I : Ns) {
270270
OS << "%bb." << I;

0 commit comments

Comments
 (0)