forked from OSchip/llvm-project
[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:
parent
d84f5d30e2
commit
af53ed1a7f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue