mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
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
282328faed
commit
3c784ef695
@ -195,10 +195,10 @@ namespace {
|
||||
}
|
||||
|
||||
bool ReduceCrashingFunctions::TestFuncs(std::vector<Function*> &Funcs) {
|
||||
|
||||
//if main isn't present, claim there is no problem
|
||||
if (KeepMain && find(Funcs.begin(), Funcs.end(),
|
||||
BD.getProgram()->getFunction("main")) == Funcs.end())
|
||||
// If main isn't present, claim there is no problem.
|
||||
if (KeepMain && std::find(Funcs.begin(), Funcs.end(),
|
||||
BD.getProgram()->getFunction("main")) ==
|
||||
Funcs.end())
|
||||
return false;
|
||||
|
||||
// Clone the program to try hacking it apart...
|
||||
|
Loading…
x
Reference in New Issue
Block a user