From: Evan Cheng Date: Sun, 7 Sep 2008 09:00:57 +0000 (+0000) Subject: Eliminate a compile time warning. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e3e36263384a7f4662f2eafa090507602a5c391e;p=oota-llvm.git Eliminate a compile time warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55878 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index 74268a3c3e7..e2278ad62ca 100644 --- 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";