Mercurial > hg > CbC > CbC_llvm
diff tools/clang/lib/Tooling/CompilationDatabase.cpp @ 33:e4204d083e25 LLVM3.5
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 54457678186b |
line wrap: on
line diff
--- a/tools/clang/lib/Tooling/CompilationDatabase.cpp Thu Dec 12 13:57:29 2013 +0900 +++ b/tools/clang/lib/Tooling/CompilationDatabase.cpp Thu Dec 12 14:32:10 2013 +0900 @@ -271,6 +271,7 @@ End = std::remove_if(Args.begin(), End, MatchesAny(DiagClient.UnusedInputs)); // Remove the -c add above as well. It will be at the end right now. + assert(strcmp(*(End - 1), "-c") == 0); --End; Result = std::vector<std::string>(Args.begin() + 1, End);