diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-09-17 18:00:53 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-09-17 18:00:53 +0000 |
commit | 4c36349de9682f515682a17b09fba1ab195b6b6a (patch) | |
tree | 45d071127f00b9fdc655a85767faec99d16bf99d /llvm/utils/TableGen/FixedLenDecoderEmitter.cpp | |
parent | 636f1a1d9966189480c56405bb45cea031a7870f (diff) | |
download | bcm5719-llvm-4c36349de9682f515682a17b09fba1ab195b6b6a.tar.gz bcm5719-llvm-4c36349de9682f515682a17b09fba1ab195b6b6a.zip |
TableGen: Add initializer.
Keep GCC's warnings happy. It can't reason out that the state machine won't
ever hit the potentially uninitialized use in OPC_FilterValue.
llvm-svn: 164041
Diffstat (limited to 'llvm/utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/FixedLenDecoderEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp index aa6d7962a07..e755c1ce9cb 100644 --- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp @@ -1882,7 +1882,7 @@ static void emitDecodeInstruction(formatted_raw_ostream &OS) { << " uint64_t Bits = STI.getFeatureBits();\n" << "\n" << " const uint8_t *Ptr = DecodeTable;\n" - << " uint32_t CurFieldValue;\n" + << " uint32_t CurFieldValue = 0;\n" << " DecodeStatus S = MCDisassembler::Success;\n" << " for (;;) {\n" << " ptrdiff_t Loc = Ptr - DecodeTable;\n" |