[llvm] 1ece14b - [ORC] Silence a buggy GCC unused argument warning.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 3 15:45:44 PDT 2021
Author: Lang Hames
Date: 2021-09-04T08:45:36+10:00
New Revision: 1ece14b652755cdc9641c8361e6d29a7943a7b49
URL: https://github.com/llvm/llvm-project/commit/1ece14b652755cdc9641c8361e6d29a7943a7b49
DIFF: https://github.com/llvm/llvm-project/commit/1ece14b652755cdc9641c8361e6d29a7943a7b49.diff
LOG: [ORC] Silence a buggy GCC unused argument warning.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
index bd74b5b3529d3..eb27c9674aabc 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
@@ -315,6 +315,7 @@ class WrapperFunctionAsyncHandlerHelper<RetT(SendResultT, ArgTs...),
static void callAsync(HandlerT &&H,
SerializeAndSendResultT &&SerializeAndSendResult,
ArgTupleT Args, std::index_sequence<I...>) {
+ (void)Args; // Silence a buggy GCC warning.
return std::forward<HandlerT>(H)(std::move(SerializeAndSendResult),
std::move(std::get<I>(Args))...);
}
More information about the llvm-commits
mailing list