summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling/CompilationDatabase.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2013-12-05 04:27:16 +0000
committerRichard Trieu <rtrieu@google.com>2013-12-05 04:27:16 +0000
commite99bb4b2b9041271695f77672aa8cc2c3ce1ba5c (patch)
treea30f6594ce9d4f62bd2229e4e58d1fce0264a7b8 /clang/lib/Tooling/CompilationDatabase.cpp
parentd50dbc783bf1c6e6da08ebbee37c69c72a98fc6c (diff)
downloadbcm5719-llvm-e99bb4b2b9041271695f77672aa8cc2c3ce1ba5c.tar.gz
bcm5719-llvm-e99bb4b2b9041271695f77672aa8cc2c3ce1ba5c.zip
Fixed a bad assert from r194968. r194969 removed the assert.
llvm-svn: 196463
Diffstat (limited to 'clang/lib/Tooling/CompilationDatabase.cpp')
-rw-r--r--clang/lib/Tooling/CompilationDatabase.cpp1
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);
OpenPOWER on IntegriCloud