[llvm] [ORC] Fix wrong callee in EPCGenericRTDyldMemoryManager dtor (PR #224493)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 22:06:15 PDT 2026
https://github.com/lhames updated https://github.com/llvm/llvm-project/pull/224493
>From 97064e05a0bd4d5a4d3e7e5fa49bad4aaee943dd Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Thu, 17 Sep 2026 23:10:03 +1000
Subject: [PATCH] [ORC] Fix wrong callee in EPCGenericRTDyldMemoryManager dtor
The destructor invoked the reserve wrapper with the release signature
when freeing FinalizedAllocs. Call the release wrapper instead.
No testcase. This was spotted by inspection, and this class is expected
to be deprecated shortly.
---
llvm/lib/ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.cpp b/llvm/lib/ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.cpp
index 28566d309b8121..11489766036772 100644
--- a/llvm/lib/ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.cpp
@@ -52,7 +52,7 @@ EPCGenericRTDyldMemoryManager::~EPCGenericRTDyldMemoryManager() {
Error Err = Error::success();
if (auto Err2 = EPC.callSPSWrapper<rt::sps_ci::MemMgrRelease::SPSSig>(
- SAs.Reserve, Err, SAs.Instance, FinalizedAllocs)) {
+ SAs.Release, Err, SAs.Instance, FinalizedAllocs)) {
// FIXME: Report errors through EPC once that functionality is available.
logAllUnhandledErrors(std::move(Err2), errs(), "");
return;
More information about the llvm-commits
mailing list