[llvm-commits] [llvm] r164041 - /llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Jim Grosbach
grosbach at apple.com
Mon Sep 17 11:00:54 PDT 2012
Author: grosbach
Date: Mon Sep 17 13:00:53 2012
New Revision: 164041
URL: http://llvm.org/viewvc/llvm-project?rev=164041&view=rev
Log:
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.
Modified:
llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Modified: llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp?rev=164041&r1=164040&r2=164041&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp Mon Sep 17 13:00:53 2012
@@ -1882,7 +1882,7 @@
<< " 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"
More information about the llvm-commits
mailing list