Fix column checking for SourceManager::getLocation().
llvm-svn: 74194
This commit is contained in:
parent
269884ead5
commit
0e5ecbda69
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue