aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-03-12 13:49:45 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-03-12 13:49:45 +0000
commit0c22d5a3392e21772ec7c29ba1bdc818f9ab61e5 (patch)
tree136aad45d46fab6fe8fc2936f24860c874b4c6a2 /clang/unittests/Format/FormatTestJava.cpp
parent92bdaabf97fbe98bdb28c992df624b18d9c3c7e1 (diff)
downloadllvm-0c22d5a3392e21772ec7c29ba1bdc818f9ab61e5.zip
llvm-0c22d5a3392e21772ec7c29ba1bdc818f9ab61e5.tar.gz
llvm-0c22d5a3392e21772ec7c29ba1bdc818f9ab61e5.tar.bz2
Instead of dereferencing std::vector::end() (which is UB and causes failed assertions in debug builds with Visual Studio), use data() + size() to calculate the end iterator. Amends r231952.
llvm-svn: 232037
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions