[llvm] 1ece14b - [ORC] Silence a buggy GCC unused argument warning.
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 6 13:30:41 PDT 2021
I guess it triggered when the index sequence was zero length? Yeah, pity.
On Fri, Sep 3, 2021 at 3:45 PM Lang Hames via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
>
> 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))...);
> }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210906/187f3bf7/attachment.html>
More information about the llvm-commits
mailing list