[ORC] Silence a buggy GCC unused argument warning.
authorLang Hames <lhames@gmail.com>
Fri, 3 Sep 2021 22:08:31 +0000 (08:08 +1000)
committerLang Hames <lhames@gmail.com>
Fri, 3 Sep 2021 22:45:36 +0000 (08:45 +1000)
llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h

index bd74b5b..eb27c96 100644 (file)
@@ -315,6 +315,7 @@ private:
   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))...);
   }