diff options
author | Alp Toker <alp@nuanti.com> | 2014-06-27 09:24:27 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-06-27 09:24:27 +0000 |
commit | 895a23fa2be9840909ca0f62c1d41d75cbebb63e (patch) | |
tree | bef2641b333757eef239a3dc2b01fda6b58fe4f0 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | de4c009be49c133fb484eba1cf2c7d3755b8147b (diff) | |
download | bcm5719-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.cpp | 3 |
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( |