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 | 97f18688f35fc57e6edeebde05b28b8ac963e651 (patch) | |
| tree | 98677922354abb2f38a9225378e63b964c98cd6d /lib/Tooling/CompilationDatabase.cpp | |
| parent | a2671931cbcf245390281162037628776a5ecfb9 (diff) | |
| download | clang-97f18688f35fc57e6edeebde05b28b8ac963e651.tar.gz clang-97f18688f35fc57e6edeebde05b28b8ac963e651.tar.bz2 clang-97f18688f35fc57e6edeebde05b28b8ac963e651.tar.xz | |
Fixed a bad assert from r194968. r194969 removed the assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling/CompilationDatabase.cpp')
| -rw-r--r-- | lib/Tooling/CompilationDatabase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Tooling/CompilationDatabase.cpp b/lib/Tooling/CompilationDatabase.cpp index c962055de7..286beb7ae2 100644 --- a/lib/Tooling/CompilationDatabase.cpp +++ b/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); |
