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 | 9bb938c5401db90817d16b32fa078066fb586551 (patch) | |
tree | 6cda9cce191fb9445102ee60cf9a239daac970d6 /utils | |
parent | 78fff8ec487a7c16633c5795e38e297ce6ddafa4 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/FixedLenDecoderEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp index aa6d7962a0..e755c1ce9c 100644 --- a/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/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" |