r216493 - Update for llvm api change.
Rafael Espindola
rafael.espindola at gmail.com
Tue Aug 26 15:00:14 PDT 2014
Author: rafael
Date: Tue Aug 26 17:00:14 2014
New Revision: 216493
URL: http://llvm.org/viewvc/llvm-project?rev=216493&view=rev
Log:
Update for llvm api change.
Modified:
cfe/trunk/lib/CodeGen/CodeGenAction.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=216493&r1=216492&r2=216493&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Tue Aug 26 17:00:14 2014
@@ -633,13 +633,12 @@ CodeGenAction::CreateASTConsumer(Compile
}
ErrorOr<llvm::Module *> ModuleOrErr =
- getLazyBitcodeModule(BCBuf.get(), *VMContext);
+ getLazyBitcodeModule(BCBuf, *VMContext);
if (std::error_code EC = ModuleOrErr.getError()) {
CI.getDiagnostics().Report(diag::err_cannot_open_file)
<< LinkBCFile << EC.message();
return nullptr;
}
- BCBuf.release(); // Owned by the module now.
LinkModuleToUse = ModuleOrErr.get();
}
More information about the cfe-commits
mailing list