From e3e36263384a7f4662f2eafa090507602a5c391e Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sun, 7 Sep 2008 09:00:57 +0000 Subject: [PATCH] Eliminate a compile time warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55878 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/CodeEmitterGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";