fix Bug 12924
authorSeth Cantrell <seth.cantrell@gmail.com>
Thu, 24 May 2012 05:14:44 +0000 (05:14 +0000)
committerSeth Cantrell <seth.cantrell@gmail.com>
Thu, 24 May 2012 05:14:44 +0000 (05:14 +0000)
commitac6fb8f9f602fa74cf16e43520c12a302627c873
tree1e4212985325a25bfcf74f98b31d73d315bf4de0
parent2edc84ee60453dea192e609619c522216eb9073b
fix Bug 12924

http://llvm.org/bugs/show_bug.cgi?id=12924

This issue was that the source location was pointing to a
non-printable character and so CaretEnd was pointing one
_column_ past the caret but not one _character_ past the
caret. So the conversion between column and byte locations
wasn't working (because the conversion is only valid from
the first column or byte of a character).

llvm-svn: 157372
clang/lib/Frontend/TextDiagnostic.cpp