forked from OSchip/llvm-project
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:
parent
eb56f4fe2f
commit
b90f560303
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue