aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2020-03-19 15:33:45 -0700
committerDavid Blaikie <dblaikie@gmail.com>2020-03-19 18:21:14 -0700
commit1c1537749615a9be98a33482cdf6bf6f602f1eed (patch)
tree80d1277b97936793828a5ff7311479314ec185f4 /clang/lib/Frontend/CompilerInvocation.cpp
parent09ac859c136b406231ef7547f3800111dd00bc7e (diff)
downloadllvm-1c1537749615a9be98a33482cdf6bf6f602f1eed.zip
llvm-1c1537749615a9be98a33482cdf6bf6f602f1eed.tar.gz
llvm-1c1537749615a9be98a33482cdf6bf6f602f1eed.tar.bz2
Recommit: CFGDiff: Simplify/common the begin/end implementations to use a common range helper""
(would be nice to revisit the CFG traits and change them to use ranges rather than begin/end - if anyone wants to do that refactor) Also use more auto because writing the names of range utilty iterators isn't helping readability here - they're sort of implementation details for the most part, especially once you nest a few different filtering and adapting iterators. The fix (shooting from the hip since I couldn't reproduce this locally) was to capture by value in a lambda used in a filtering iterator - because the iterator would persist beyond the lifetime of the function (as the iterators are returned to callers). Originally committed in 79a7ed92a9b135212a6a271dd8dbc625038c8f06. This was reverted in 4a7f2032a350bc7eefd26709563f65216df3e2ce.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions