forked from OSchip/llvm-project
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:
parent
baf3fdb86b
commit
6e0520e9d9
|
@ -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...
|
||||||
|
|
Loading…
Reference in New Issue