[llvm] r307168 - [globalisel][tablegen] Fix another unused variable warning introduced by r307159

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 10 11:46:29 PDT 2017


(same feedback here as on another similar change)

On Wed, Jul 5, 2017 at 9:05 AM Daniel Sanders via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: dsanders
> Date: Wed Jul  5 08:34:16 2017
> New Revision: 307168
>
> URL: http://llvm.org/viewvc/llvm-project?rev=307168&view=rev
> Log:
> [globalisel][tablegen] Fix another unused variable warning introduced by
> r307159
>
>
>
> Modified:
>     llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
>
> Modified:
> llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h?rev=307168&r1=307167&r2=307168&view=diff
>
> ==============================================================================
> --- llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
> (original)
> +++ llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
> Wed Jul  5 08:34:16 2017
> @@ -191,7 +191,7 @@ bool InstructionSelector::executeMatchTa
>        break;
>      }
>      case GIR_BuildMI: {
> -      int64_t InsnID = *Command++;
> +      int64_t InsnID LLVM_ATTRIBUTE_UNUSED = *Command++;
>        int64_t Opcode = *Command++;
>        assert((size_t)InsnID == OutMIs.size() &&
>               "Expected to store MIs in order");
>
>
> _______________________________________________
> 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/20170710/f92d4637/attachment.html>


More information about the llvm-commits mailing list