]> granicus.if.org Git - clang/commit
Fix a bug in caret-line-pruning logic that only happens when we have a
authorDouglas Gregor <dgregor@apple.com>
Fri, 16 Apr 2010 00:23:51 +0000 (00:23 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 16 Apr 2010 00:23:51 +0000 (00:23 +0000)
commitce487ef6c1ba3b35250ce5bfe053e24e34a854e6
tree5b3e31d06a6cf3e54abd54a72c2182f5095a7fcd
parentc0b39640de335809ca7544f802751112619f30cc
Fix a bug in caret-line-pruning logic that only happens when we have a
source line wider than the terminal where the associated fix-it line
is longer than the caret line. Previously, we would crash in this
case, which was rather unfortunate. Fixes <rdar://problem/7856226>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101426 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/TextDiagnosticPrinter.cpp
test/Misc/message-length.c