[PATCH] D70870: [IR] Use a reference in a range-based for
Mark de Wever via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 30 12:08:28 PST 2019
Mordante created this revision.
Mordante added reviewers: Eugene.Zelenko, majnemer, xbolva00, aaron.ballman.
Mordante added a project: LLVM.
Herald added subscribers: arphaman, hiraditya.
This avoids unneeded copies when using a range-based for loops.
This avoids new warnings due to D68912 <https://reviews.llvm.org/D68912> adds -Wrange-loop-analysis to -Wall.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70870
Files:
llvm/lib/IR/Attributes.cpp
llvm/lib/IR/ModuleSummaryIndex.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70870.231594.patch
Type: text/x-patch
Size: 5567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191130/12bf83ea/attachment.bin>
More information about the llvm-commits
mailing list