Skip to content
Snippets Groups Projects
Commit 97f18688 authored by Richard Trieu's avatar Richard Trieu
Browse files

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
parent a2671931
No related branches found
No related tags found
No related merge requests found
...@@ -271,6 +271,7 @@ bool stripPositionalArgs(std::vector<const char *> Args, ...@@ -271,6 +271,7 @@ bool stripPositionalArgs(std::vector<const char *> Args,
End = std::remove_if(Args.begin(), End, MatchesAny(DiagClient.UnusedInputs)); 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. // Remove the -c add above as well. It will be at the end right now.
assert(strcmp(*(End - 1), "-c") == 0);
--End; --End;
Result = std::vector<std::string>(Args.begin() + 1, End); Result = std::vector<std::string>(Args.begin() + 1, End);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment