Remove a bad string compare from r194968

lib/Tooling/CompilationDatabase.cpp:275:34: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]

This assert() should probably be fixed and added back at some point.

llvm-svn: 194969
This commit is contained in:
Alp Toker 2013-11-17 16:49:24 +00:00
parent eb56f4fe2f
commit b90f560303
1 changed files with 0 additions and 1 deletions

View File

@ -272,7 +272,6 @@ 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(*(End - 1) == "-c");
--End;
Result = std::vector<std::string>(Args.begin() + 1, End);