[Orc] Fix syntax error in LazyEmittingLayer::removeModuleSet.
[oota-llvm.git] / include / llvm / ExecutionEngine / Orc / LazyEmittingLayer.h
index c9463e4071af7292d050f101ae1b744792466c46..6b625e5e89d014c845504e34b0a42c948e56e295 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) {
   ///   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);
   }
 
     ModuleSetList.erase(H);
   }