From af53ed1a7fdbd577b6e167742f81a17f7b49d4ae 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. llvm-svn: 229806 --- llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h index 9436b82528ef..50e9a4352dd7 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h +++ b/llvm/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);