[llvm] r307138 - [globalisel][tablegen] Fix an unused variable warning in release builds after r307133
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 03:16:48 PDT 2017
Author: dsanders
Date: Wed Jul 5 03:16:48 2017
New Revision: 307138
URL: http://llvm.org/viewvc/llvm-project?rev=307138&view=rev
Log:
[globalisel][tablegen] Fix an unused variable warning in release builds after r307133
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelector.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelector.cpp?rev=307138&r1=307137&r2=307138&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelector.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelector.cpp Wed Jul 5 03:16:48 2017
@@ -59,7 +59,7 @@ void InstructionSelector::executeEmitTab
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");
More information about the llvm-commits
mailing list