clang-format: Fix use-heap-after-free bug.
authorDaniel Jasper <djasper@google.com>
Wed, 21 Jan 2015 17:35:29 +0000 (17:35 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 21 Jan 2015 17:35:29 +0000 (17:35 +0000)
commitfd725c060bf727f8967eef96dd6a72213fe93887
tree6c41424ea019953969ffba0b998303b31a5971ef
parent17c57ecf4a238e90c188937023634f1c20cc5a68
clang-format: Fix use-heap-after-free bug.

Discovered by the awesome test case and ASAN.

llvm-svn: 226678
clang/lib/Format/TokenAnnotator.h
clang/unittests/Format/FormatTest.cpp