]> granicus.if.org Git - clang/commitdiff
use getBuffer() to fix compile error. Ted, please review.
authorChris Lattner <sabre@nondot.org>
Tue, 6 Jan 2009 04:47:20 +0000 (04:47 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 6 Jan 2009 04:47:20 +0000 (04:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61786 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/CacheTokens.cpp

index 180dbcc36507d936034e75007d1dd7c04bf38aa3..b12a59fc48380409b62a2112e3c1fc569e336370 100644 (file)
@@ -347,7 +347,7 @@ void clang::CacheTokens(Preprocessor& PP, const std::string& OutFile) {
     PCHMap::iterator PI = PM.find(FE); // Have we already processed this file?
     if (PI != PM.end()) continue;
     
-    const llvm::MemoryBuffer* B = C->Buffer;    
+    const llvm::MemoryBuffer* B = C->getBuffer();
     if (!B) continue;
     
     Lexer L(SourceLocation::getFileLoc(I.getFileID(), 0), LOpts,