From 975248e4fb3ddeb2fcf743d56492494feeb803a1 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 11 Aug 2016 22:21:41 +0000 Subject: Use the range variant of find instead of unpacking begin/end If the result of the find is only used to compare against end(), just use is_contained instead. No functionality change is intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278433 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/Kaleidoscope/include/KaleidoscopeJIT.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/Kaleidoscope') diff --git a/examples/Kaleidoscope/include/KaleidoscopeJIT.h b/examples/Kaleidoscope/include/KaleidoscopeJIT.h index 553ba2d15bd..6130107bdd9 100644 --- a/examples/Kaleidoscope/include/KaleidoscopeJIT.h +++ b/examples/Kaleidoscope/include/KaleidoscopeJIT.h @@ -72,8 +72,7 @@ public: } void removeModule(ModuleHandleT H) { - ModuleHandles.erase( - std::find(ModuleHandles.begin(), ModuleHandles.end(), H)); + ModuleHandles.erase(find(ModuleHandles, H)); CompileLayer.removeModuleSet(H); } -- cgit v1.2.3