From e99bb4b2b9041271695f77672aa8cc2c3ce1ba5c Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Thu, 5 Dec 2013 04:27:16 +0000 Subject: Fixed a bad assert from r194968. r194969 removed the assert. llvm-svn: 196463 --- clang/lib/Tooling/CompilationDatabase.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Tooling/CompilationDatabase.cpp') diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp index c962055de79..286beb7ae26 100644 --- a/clang/lib/Tooling/CompilationDatabase.cpp +++ b/clang/lib/Tooling/CompilationDatabase.cpp @@ -271,6 +271,7 @@ bool stripPositionalArgs(std::vector Args, 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(Args.begin() + 1, End); -- cgit v1.2.3