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)
commitc1237a8b8fb71bace4af3fcd7da91c41cbf107c6
tree8a6dbce35217aaad97c5fce8383c72f27f0848e8
parent7206a145dd83c3c39706c9a6c3581ae57d4c3630
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.

llvm-svn: 173262
clang/lib/Format/Format.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp