[llvm] r229806 - [Orc] Fix a bug in the compile callback manager: trampoline ids need to be fixed

Lang Hames lhames at gmail.com
Wed Feb 18 17:31:25 PST 2015


Author: lhames
Date: Wed Feb 18 19:31:25 2015
New Revision: 229806

URL: http://llvm.org/viewvc/llvm-project?rev=229806&view=rev
Log:
[Orc] Fix a bug in the compile callback manager: trampoline ids need to be fixed
up before returning them to the available pool.

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h?rev=229806&r1=229805&r2=229806&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h Wed Feb 18 19:31:25 2015
@@ -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);
 





More information about the llvm-commits mailing list