Added std:: qualifier to find() invocation

Iterator of std::vector may be implemented as a raw pointer. In
this case ADL does not find the find() function in the std namespace.
For example, this is the case with STDCXX implementation of vector.

Patch by Konstantin Tokarev.

llvm-svn: 189733
This commit is contained in:
Dmitri Gribenko 2013-09-02 01:18:56 +00:00
parent baf3fdb86b
commit 6e0520e9d9
1 changed files with 4 additions and 4 deletions

View File

@ -195,10 +195,10 @@ namespace {
} }
bool ReduceCrashingFunctions::TestFuncs(std::vector<Function*> &Funcs) { bool ReduceCrashingFunctions::TestFuncs(std::vector<Function*> &Funcs) {
// If main isn't present, claim there is no problem.
//if main isn't present, claim there is no problem if (KeepMain && std::find(Funcs.begin(), Funcs.end(),
if (KeepMain && find(Funcs.begin(), Funcs.end(), BD.getProgram()->getFunction("main")) ==
BD.getProgram()->getFunction("main")) == Funcs.end()) Funcs.end())
return false; return false;
// Clone the program to try hacking it apart... // Clone the program to try hacking it apart...