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