diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-09-02 01:18:56 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-09-02 01:18:56 +0000 |
| commit | 6e0520e9d924b23f48b6b92f13e992d751cffd9f (patch) | |
| tree | 1cfa413c9260b591bd8e7b4983024eb73e749229 | |
| parent | baf3fdb86b69296534f6adb71952a21c4a979786 (diff) | |
| download | bcm5719-llvm-6e0520e9d924b23f48b6b92f13e992d751cffd9f.tar.gz bcm5719-llvm-6e0520e9d924b23f48b6b92f13e992d751cffd9f.zip | |
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
| -rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index c8b4f6f73e9..b90fc61ff9c 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/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... |

