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:
10a8d9c
)
Eliminate a compile time warning.
author
Evan Cheng
<evan.cheng@apple.com>
Sun, 7 Sep 2008 09:00:57 +0000
(09:00 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Sun, 7 Sep 2008 09:00:57 +0000
(09:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55878
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/CodeEmitterGen.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/CodeEmitterGen.cpp
b/utils/TableGen/CodeEmitterGen.cpp
index 74268a3c3e7a3efa7849423f7b5eaf3c49e6545d..e2278ad62ca4445bd6103deca89e9cbced655bea 100644
(file)
--- a/
utils/TableGen/CodeEmitterGen.cpp
+++ b/
utils/TableGen/CodeEmitterGen.cpp
@@
-220,7
+220,7
@@
void CodeEmitterGen::run(std::ostream &o) {
// Emit initial function code
o << " const unsigned opcode = MI.getOpcode();\n"
<< " unsigned Value = InstBits[opcode];\n"
- << " unsigned op;\n"
+ << " unsigned op
= 0
;\n"
<< " op = op; // suppress warning\n"
<< " switch (opcode) {\n";