summaryrefslogtreecommitdiff
path: root/utils
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
commite3e36263384a7f4662f2eafa090507602a5c391e (patch)
treeb446849add1be624788c62a921c3d4704b5137d7 /utils
parent10a8d9c737eb0e55b9460e3743b0136ab91ed833 (diff)
downloadllvm-e3e36263384a7f4662f2eafa090507602a5c391e.tar.gz
llvm-e3e36263384a7f4662f2eafa090507602a5c391e.tar.bz2
llvm-e3e36263384a7f4662f2eafa090507602a5c391e.tar.xz
Eliminate a compile time warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55878 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CodeEmitterGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp
index 74268a3c3e..e2278ad62c 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";