]> granicus.if.org Git - clang/commit
Fixes layouting regression and invalid-read.
authorManuel Klimek <klimek@google.com>
Wed, 23 Jan 2013 14:08:21 +0000 (14:08 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 23 Jan 2013 14:08:21 +0000 (14:08 +0000)
commita32a7fda316289dca6aac1352fde3caf14a1cb2f
treedab48dbe824f0b6323ec80ef704572cf0c324a36
parent20d3583857c2cc99dcc9c27ff5f23916df9c0812
Fixes layouting regression and invalid-read.

Layouting would prevent breaking before + in
a[b + c] = d;
Regression detected by code review.

Also fixes an invalid-read found by the valgrind bot.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173262 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
lib/Format/UnwrappedLineParser.cpp
unittests/Format/FormatTest.cpp