[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
This commit is contained in:
Lang Hames 2015-02-19 01:31:25 +00:00
parent d84f5d30e2
commit af53ed1a7f
1 changed files with 1 additions and 1 deletions

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