[Orc] Fix syntax error in LazyEmittingLayer::removeModuleSet.
authorLang Hames <lhames@gmail.com>
Fri, 6 Feb 2015 19:34:04 +0000 (19:34 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 6 Feb 2015 19:34:04 +0000 (19:34 +0000)
This was a trivial think-o, but it's in a method of a templated class
and doesn't have any callers yet, so the compiler let it pass. I hope
to add a unit test to cover this soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228425 91177308-0d34-0410-b5e6-96231b3b80d8

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) {
-    H->RemoveModulesFromBaseLayer();
+    (*H)->RemoveModulesFromBaseLayer(BaseLayer);
     ModuleSetList.erase(H);
   }