From 884236fa72399b1785b82f93b537771a801dc3c5 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 19 Feb 2015 01:31:25 +0000 Subject: [PATCH] [Orc] Fix a bug in the compile callback manager: trampoline ids need to be fixed up before returning them to the available pool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229806 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/Orc/IndirectionUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h b/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h index 9436b82528e..50e9a4352dd 100644 --- a/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h +++ b/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h @@ -55,7 +55,7 @@ public: // Moving the trampoline ID back to the available list first means there's at // least one available trampoline if the compile action triggers a request for // a new one. - AvailableTrampolines.push_back(I->first); + AvailableTrampolines.push_back(I->first - TargetT::CallSize); auto CallbackHandler = std::move(I->second); ActiveTrampolines.erase(I); -- 2.34.1