summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-07 09:00:57 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-07 09:00:57 +0000
commit105c5811351a26be54ac84b2847d2a41e2e9caaf (patch)
treecce767df31d249000480e654410d931195e8936d
parentb928669409b369779249fd0fa809b9724752498b (diff)
downloadbcm5719-llvm-105c5811351a26be54ac84b2847d2a41e2e9caaf.tar.gz
bcm5719-llvm-105c5811351a26be54ac84b2847d2a41e2e9caaf.zip
Eliminate a compile time warning.
llvm-svn: 55878
-rw-r--r--llvm/utils/TableGen/CodeEmitterGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp
index 74268a3c3e7..e2278ad62ca 100644
--- a/llvm/utils/TableGen/CodeEmitterGen.cpp
+++ b/llvm/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";
OpenPOWER on IntegriCloud