diff options
author | Brad King <brad.king@kitware.com> | 2014-09-24 20:01:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-24 20:02:34 (GMT) |
commit | 7f85cb14aaec25bb434aa8f3f59a0824570d048c (patch) | |
tree | 170fdf139f8c7245e32c76dd6500676663a5533d /src | |
parent | 3c3738fef1b80f2ba22846f6ce71b5bfe943a985 (diff) | |
download | CastXML-7f85cb14aaec25bb434aa8f3f59a0824570d048c.zip CastXML-7f85cb14aaec25bb434aa8f3f59a0824570d048c.tar.gz CastXML-7f85cb14aaec25bb434aa8f3f59a0824570d048c.tar.bz2 |
Port to LLVM/Clang SVN r218400 (trunk)
Traversal of the clang::driver::JobList entries now must use 'const'
clang::driver::Command instances.
Diffstat (limited to 'src')
-rw-r--r-- | src/RunClang.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/RunClang.cxx b/src/RunClang.cxx index 9043f5b..6d83575 100644 --- a/src/RunClang.cxx +++ b/src/RunClang.cxx @@ -308,7 +308,8 @@ static int runClangImpl(const char* const* argBeg, bool result = true; for(clang::driver::JobList::const_iterator i = c->getJobs().begin(), e = c->getJobs().end(); i != e; ++i) { - clang::driver::Command* cmd = llvm::dyn_cast<clang::driver::Command>(*i); + clang::driver::Command const* cmd = + llvm::dyn_cast<clang::driver::Command>(i->get()); if(cmd && strcmp(cmd->getCreator().getName(), "clang") == 0) { // Invoke Clang with this set of arguments. std::unique_ptr<clang::CompilerInstance> |