Fix column checking for SourceManager::getLocation().

llvm-svn: 74194
This commit is contained in:
Argyrios Kyrtzidis 2009-06-25 18:22:16 +00:00
parent 269884ead5
commit 0e5ecbda69
1 changed files with 1 additions and 1 deletions

View File

@ -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;