r211884 - const_cast the memory MemoryBuffer following LLVM r211883
Alp Toker
alp at nuanti.com
Fri Jun 27 02:24:31 PDT 2014
Author: alp
Date: Fri Jun 27 04:24:27 2014
New Revision: 211884
URL: http://llvm.org/viewvc/llvm-project?rev=211884&view=rev
Log:
const_cast the memory MemoryBuffer following LLVM r211883
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=211884&r1=211883&r2=211884&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Fri Jun 27 04:24:27 2014
@@ -647,7 +647,8 @@ void CodeGenAction::ExecuteAction() {
return;
llvm::SMDiagnostic Err;
- TheModule.reset(ParseIR(MainFile, Err, *VMContext));
+ TheModule.reset(
+ ParseIR(const_cast<MemoryBuffer *>(MainFile), Err, *VMContext));
if (!TheModule) {
// Translate from the diagnostic info to the SourceManager location.
SourceLocation Loc = SM.translateFileLineCol(
More information about the cfe-commits
mailing list