summaryrefslogtreecommitdiff
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-09-02 01:18:56 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-09-02 01:18:56 +0000
commitbf2f2708e122d3a12bf300c0dec537da6dafae2b (patch)
tree20b18f3838c27933e33c749eaa5dd3360e12c0a8 /tools/bugpoint
parentcdceda4bc62e760fce1b795c2825bc871715a173 (diff)
downloadllvm-bf2f2708e122d3a12bf300c0dec537da6dafae2b.tar.gz
llvm-bf2f2708e122d3a12bf300c0dec537da6dafae2b.tar.bz2
llvm-bf2f2708e122d3a12bf300c0dec537da6dafae2b.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/CrashDebugger.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp
index c8b4f6f73e..b90fc61ff9 100644
--- a/tools/bugpoint/CrashDebugger.cpp
+++ b/tools/bugpoint/CrashDebugger.cpp
@@ -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...