From 1b230149be83b2ce789c2d05a571dab9d178bdd1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 6 Jan 2009 04:47:20 +0000 Subject: [PATCH] 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 --- Driver/CacheTokens.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.50.1