diff options
author | Richard Trieu <rtrieu@google.com> | 2013-12-05 04:27:16 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2013-12-05 04:27:16 +0000 |
commit | e99bb4b2b9041271695f77672aa8cc2c3ce1ba5c (patch) | |
tree | a30f6594ce9d4f62bd2229e4e58d1fce0264a7b8 | |
parent | d50dbc783bf1c6e6da08ebbee37c69c72a98fc6c (diff) | |
download | bcm5719-llvm-e99bb4b2b9041271695f77672aa8cc2c3ce1ba5c.tar.gz bcm5719-llvm-e99bb4b2b9041271695f77672aa8cc2c3ce1ba5c.zip |
Fixed a bad assert from r194968. r194969 removed the assert.
llvm-svn: 196463
-rw-r--r-- | clang/lib/Tooling/CompilationDatabase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<const char *> 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<std::string>(Args.begin() + 1, End); |