projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de4c009
)
const_cast the memory MemoryBuffer following LLVM r211883
author
Alp Toker
<alp@nuanti.com>
Fri, 27 Jun 2014 09:24:27 +0000
(09:24 +0000)
committer
Alp Toker
<alp@nuanti.com>
Fri, 27 Jun 2014 09:24:27 +0000
(09:24 +0000)
llvm-svn: 211884
clang/lib/CodeGen/CodeGenAction.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CodeGenAction.cpp
b/clang/lib/CodeGen/CodeGenAction.cpp
index
1a092fc
..
18fa0fa
100644
(file)
--- 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(