projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8608cf2
)
Suppress compiler warning.
author
Daniel Dunbar
<daniel@zuster.org>
Wed, 5 Aug 2009 21:42:40 +0000
(21:42 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Wed, 5 Aug 2009 21:42:40 +0000
(21:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78246
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/AsmWriterEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/AsmWriterEmitter.cpp
b/utils/TableGen/AsmWriterEmitter.cpp
index de4ec226fc1d15b1ecddbaaa139339910e5efbc2..974c334651b969e288e1b25255e90a69b2115760 100644
(file)
--- a/
utils/TableGen/AsmWriterEmitter.cpp
+++ b/
utils/TableGen/AsmWriterEmitter.cpp
@@
-728,7
+728,9
@@
void AsmWriterEmitter::run(raw_ostream &O) {
<< " 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;