commit | d1eabfb15c87837c57d1eb658d75a1f48d6fd5ed | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Sat Feb 27 02:42:25 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Sat Feb 27 02:42:25 2010 +0000 |
tree | 1674794461bdb4baf33f78c7357f7d149707ac35 | |
parent | de431c2dc7ec3592327ab23ae315fc915c549f05 [diff] |
Robustify SourceManager::getLocation(), so that it returns an end-of-line source location when given a column number beyond the length of the line, or an end-of-file source location when given a line number beyond the length of the file. Previously, we would return an invalid location. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97299 91177308-0d34-0410-b5e6-96231b3b80d8