[llvm-commits] [llvm] r78246 - /llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Daniel Dunbar
daniel at zuster.org
Wed Aug 5 14:43:29 PDT 2009
Author: ddunbar
Date: Wed Aug 5 16:42:40 2009
New Revision: 78246
URL: http://llvm.org/viewvc/llvm-project?rev=78246&view=rev
Log:
Suppress compiler warning.
Modified:
llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=78246&r1=78245&r2=78246&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Wed Aug 5 16:42:40 2009
@@ -728,7 +728,9 @@
<< " if (Bits == 0) return false;\n"
<< " O << AsmStrs+(Bits & " << (1 << AsmStrBits)-1 << ");\n\n";
- O << " unsigned OperandColumn = 1;\n\n";
+ // This variable may be unused, suppress build warnings.
+ O << " unsigned OperandColumn = 1;\n";
+ O << " (void) OperandColumn;\n\n";
// Output the table driven operand information.
BitsLeft = 32-AsmStrBits;
More information about the llvm-commits
mailing list