From a90a4d4a0a365f991b92e925436ec63ef4969839 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 19 Jan 2009 07:30:29 +0000 Subject: some minor cleanups to SourceManager, and eliminate the SourceManager::getBuffer(SourceLocation) method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62494 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/SourceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Basic/SourceManager.cpp') diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index f793c978cc..b053b160e1 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -184,7 +184,7 @@ SourceLocation SourceManager::getInstantiationLoc(SourceLocation SpellingLoc, /// data for the specified location. std::pair SourceManager::getBufferData(SourceLocation Loc) const { - const llvm::MemoryBuffer *Buf = getBuffer(Loc); + const llvm::MemoryBuffer *Buf = getBuffer(getCanonicalFileID(Loc)); return std::make_pair(Buf->getBufferStart(), Buf->getBufferEnd()); } -- cgit v1.2.3-18-g5258