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