Fixed a bad assert from r194968. r194969 removed the assert.

llvm-svn: 196463
This commit is contained in:
Richard Trieu
2013-12-05 04:27:16 +00:00
parent d50dbc783b
commit e99bb4b2b9

View File

@@ -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);