summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-27 09:24:27 +0000
committerAlp Toker <alp@nuanti.com>2014-06-27 09:24:27 +0000
commit895a23fa2be9840909ca0f62c1d41d75cbebb63e (patch)
treebef2641b333757eef239a3dc2b01fda6b58fe4f0 /clang/lib/CodeGen/CodeGenAction.cpp
parentde4c009be49c133fb484eba1cf2c7d3755b8147b (diff)
downloadbcm5719-llvm-895a23fa2be9840909ca0f62c1d41d75cbebb63e.tar.gz
bcm5719-llvm-895a23fa2be9840909ca0f62c1d41d75cbebb63e.zip
const_cast the memory MemoryBuffer following LLVM r211883
llvm-svn: 211884
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index 1a092fcedb1..18fa0fad921 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -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(
OpenPOWER on IntegriCloud