summaryrefslogtreecommitdiff
path: root/examples/Kaleidoscope
diff options
context:
space:
mode:
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);
}