diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-25 18:22:16 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-25 18:22:16 +0000 |
| commit | 0e5ecbda6992001f6506dfe42a60695d06750863 (patch) | |
| tree | d7b665527be4155703be690afd8f6e7dc44ea00d /clang/lib/Basic/SourceManager.cpp | |
| parent | 269884ead5e5647c2f0fcb2ff541cb100a3ae9be (diff) | |
| download | bcm5719-llvm-0e5ecbda6992001f6506dfe42a60695d06750863.tar.gz bcm5719-llvm-0e5ecbda6992001f6506dfe42a60695d06750863.zip | |
Fix column checking for SourceManager::getLocation().
llvm-svn: 74194
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
| -rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index 69b6be79d13..6640c61ff3b 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -943,7 +943,7 @@ SourceLocation SourceManager::getLocation(const FileEntry *SourceFile, return SourceLocation(); unsigned FilePos = Content->SourceLineCache[Line - 1]; - const char *Buf = Content->getBuffer()->getBufferStart(); + const char *Buf = Content->getBuffer()->getBufferStart() + FilePos; unsigned BufLength = Content->getBuffer()->getBufferEnd() - Buf; unsigned i = 0; |

