X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FExecutionEngine%2FOrc%2FLazyEmittingLayer.h;h=6b625e5e89d014c845504e34b0a42c948e56e295;hp=c9463e4071af7292d050f101ae1b744792466c46;hb=b20b9fb7f71f865fbce56e502a786646249919a7;hpb=4c2a2ac1965714a3201c26868984c9364df9eb51 diff --git a/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h b/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h index c9463e4071a..6b625e5e89d 100644 --- a/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h +++ b/include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h @@ -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); }