From: Lang Hames Date: Thu, 19 Feb 2015 01:31:25 +0000 (+0000) Subject: [Orc] Fix a bug in the compile callback manager: trampoline ids need to be fixed X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=884236fa72399b1785b82f93b537771a801dc3c5;p=oota-llvm.git [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 --- 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);