[Orc] Fix syntax error in LazyEmittingLayer::removeModuleSet.
[oota-llvm.git] / include / llvm / ExecutionEngine / Orc / LazyEmittingLayer.h
index c9463e4..6b625e5 100644 (file)
@@ -207,7 +207,7 @@ public:
   ///   This method will free the memory associated with the given module set,
   /// both in this layer, and the base layer.
   void removeModuleSet(ModuleSetHandleT H) {
-    H->RemoveModulesFromBaseLayer();
+    (*H)->RemoveModulesFromBaseLayer(BaseLayer);
     ModuleSetList.erase(H);
   }