From b20b9fb7f71f865fbce56e502a786646249919a7 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Fri, 6 Feb 2015 19:34:04 +0000 Subject: [PATCH 1/1] [Orc] Fix syntax error in LazyEmittingLayer::removeModuleSet. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.34.1