Prefer range-for over iterators when such methods exist. Precommitted
from https://reviews.llvm.org/D91816.
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Paths
| Differential D92350
[InlineCost] prefer range-for. NFC ClosedPublic Authored by nickdesaulniers on Nov 30 2020, 2:41 PM.
Details
Summary Prefer range-for over iterators when such methods exist. Precommitted Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Diff Detail
Event Timelinenickdesaulniers added a child revision: D91816: [Inline] prevent inlining on stack protector mismatch.Nov 30 2020, 2:43 PM Comment Actions Generally no need to send this sort of thing out for review - I think we've generally been OK with broad cleanup of range-based-for even in otherwise untouched code. This revision is now accepted and ready to land.Nov 30 2020, 3:54 PM Closed by commit rG91aff1d8bae0: [InlineCost] prefer range-for. NFC (authored by nickdesaulniers). · Explain WhyNov 30 2020, 4:08 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 308496 llvm/lib/Analysis/InlineCost.cpp
|