From: Rafael Espindola Date: Tue, 26 Aug 2014 21:49:29 +0000 (+0000) Subject: Update for llvm api change X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfa7a9e88c4f7250a1ccc6234fdd0bfc8fc69c82;p=clang Update for llvm api change git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216489 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index f2698f34bd..67e840cb48 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -674,7 +674,7 @@ void CodeGenAction::ExecuteAction() { return; llvm::SMDiagnostic Err; - TheModule = parseIR(MainFile, Err, *VMContext); + TheModule = parseIR(MainFile->getMemBufferRef(), Err, *VMContext); if (!TheModule) { // Translate from the diagnostic info to the SourceManager location if // available.