[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
This commit is contained in:
Lang Hames 2015-02-19 01:31:25 +00:00
parent 4a48ec9281
commit 884236fa72

View File

@ -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);