aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-11 01:43:06 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-11 01:43:06 +0000
commit68fba279bc2e5671afd927ba13bc6a26ac62d750 (patch)
treee647af105b1169085bffc5263749f1ab70cc0033 /clang/lib/Frontend/CompilerInvocation.cpp
parentc491f72e7a8b62e6b216e2a872c2ced5d7151793 (diff)
downloadllvm-68fba279bc2e5671afd927ba13bc6a26ac62d750.zip
llvm-68fba279bc2e5671afd927ba13bc6a26ac62d750.tar.gz
llvm-68fba279bc2e5671afd927ba13bc6a26ac62d750.tar.bz2
Don't rely on the default constructor default constructing a begin and
end iterator for iterator_range<>. I removed this constructor because for some iterators (notably pointers) it left begin and end uninitialized. It also is an usual constraint that an iterator default constructs to a valid end iterator such that the pair of them for a valid range. In the three places where this was used in Clang, explicitly build the empty range from the iterators and comment on why default constructed iterators make sense here. llvm-svn: 225594
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions