summaryrefslogtreecommitdiff
path: root/examples/Kaleidoscope
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-08-11 22:21:41 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-08-11 22:21:41 +0000
commit975248e4fb3ddeb2fcf743d56492494feeb803a1 (patch)
tree4105e6d070c6472d6152f3b85bfef3612f9e6bd1 /examples/Kaleidoscope
parentfb2a7f990d60e9f97008cae87d9848c244c15311 (diff)
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
Diffstat (limited to 'examples/Kaleidoscope')
-rw-r--r--examples/Kaleidoscope/include/KaleidoscopeJIT.h3
1 files changed, 1 insertions, 2 deletions
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);
}