[llvm] [orc-rt] Remove redundant [[nodiscard]] from runFinalizeActions. NFC. (PR #209163)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 05:41:17 PDT 2026
https://github.com/lhames created https://github.com/llvm/llvm-project/pull/209163
runFinalizeActions returns an Expected, which already carries a nodiscard attribute.
>From a0476b24598c682b4dd2ab508c59256800802429 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Mon, 13 Jul 2026 22:35:49 +1000
Subject: [PATCH] [orc-rt] Remove redundant [[nodiscard]] from
runFinalizeActions. NFC.
runFinalizeActions returns an Expected, which already carries a nodiscard
attribute.
---
orc-rt/include/orc-rt/AllocAction.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/orc-rt/include/orc-rt/AllocAction.h b/orc-rt/include/orc-rt/AllocAction.h
index e2362629eccd5..d4e5dd7584d3a 100644
--- a/orc-rt/include/orc-rt/AllocAction.h
+++ b/orc-rt/include/orc-rt/AllocAction.h
@@ -74,7 +74,7 @@ struct AllocActionPair {
///
/// Both finalize and dealloc actions are permitted to be null (i.e. have a
/// null action function) in which case they are ignored.
-[[nodiscard]] Expected<std::vector<AllocAction>>
+Expected<std::vector<AllocAction>>
runFinalizeActions(std::vector<AllocActionPair> AAPs);
/// Run the given deallocation actions in revwerse order.
More information about the llvm-commits
mailing list