summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-02-19 01:31:25 +0000
committerLang Hames <lhames@gmail.com>2015-02-19 01:31:25 +0000
commitaf53ed1a7fdbd577b6e167742f81a17f7b49d4ae (patch)
tree50bd7bbed39ad33f2dddd08abe2ca2cf18b16fab /llvm
parentd84f5d30e286a6c20aa822d527697f96f8eded7e (diff)
downloadbcm5719-llvm-af53ed1a7fdbd577b6e167742f81a17f7b49d4ae.tar.gz
bcm5719-llvm-af53ed1a7fdbd577b6e167742f81a17f7b49d4ae.zip
[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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
index 9436b82528e..50e9a4352dd 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud