[llvm] r257431 - OrcRemoteTargetServer.h: Suppress a warning. [-Wunused-variable]

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 19:08:55 PST 2016


On Mon, Jan 11, 2016 at 5:23 PM, NAKAMURA Takumi via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: chapuni
> Date: Mon Jan 11 19:23:43 2016
> New Revision: 257431
>
> URL: http://llvm.org/viewvc/llvm-project?rev=257431&view=rev
> Log:
> OrcRemoteTargetServer.h: Suppress a warning. [-Wunused-variable]
>
> FIXME: It may return ErrorOr.
>
> Modified:
>     llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
>
> Modified:
> llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h?rev=257431&r1=257430&r2=257431&view=diff
>
> ==============================================================================
> --- llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
> (original)
> +++ llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
> Mon Jan 11 19:23:43 2016
> @@ -156,6 +156,7 @@ private:
>          CompiledFnAddr, static_cast<TargetAddress>(
>                              reinterpret_cast<uintptr_t>(TrampolineAddr)));
>      assert(!EC && "Compile request failed");
> +    (void)&EC;
>

Could drop the '&' here


>      return CompiledFnAddr;
>    }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://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/20160111/acd274c9/attachment.html>


More information about the llvm-commits mailing list