From: Chris Lattner Date: Tue, 6 Jan 2009 04:47:20 +0000 (+0000) Subject: use getBuffer() to fix compile error. Ted, please review. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b230149be83b2ce789c2d05a571dab9d178bdd1;p=clang use getBuffer() to fix compile error. Ted, please review. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61786 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/CacheTokens.cpp b/Driver/CacheTokens.cpp index 180dbcc365..b12a59fc48 100644 --- a/Driver/CacheTokens.cpp +++ b/Driver/CacheTokens.cpp @@ -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,