diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-26 02:03:52 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-26 02:03:52 +0000 |
commit | 5318181c2789704fd41b93fb37ac20496ba977c0 (patch) | |
tree | cfaf81fc205eb4a94fc110797073364622e68dd6 /lib/Target/PIC16 | |
parent | 83968bb3ff00a5723558993673d097ce39892459 (diff) | |
download | external_llvm-5318181c2789704fd41b93fb37ac20496ba977c0.zip external_llvm-5318181c2789704fd41b93fb37ac20496ba977c0.tar.gz external_llvm-5318181c2789704fd41b93fb37ac20496ba977c0.tar.bz2 |
Fix may-be-used-uninitialized warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16')
-rw-r--r-- | lib/Target/PIC16/PIC16DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16DebugInfo.cpp b/lib/Target/PIC16/PIC16DebugInfo.cpp index 27551cd..4300588 100644 --- a/lib/Target/PIC16/PIC16DebugInfo.cpp +++ b/lib/Target/PIC16/PIC16DebugInfo.cpp @@ -300,7 +300,7 @@ void PIC16DbgInfo::EmitCompositeTypeElements (DICompositeType CTy, // Get mangleddd name for this structure/union element. std::string MangMemName = ElementName + UniqueSuffix; PopulateDebugInfo(DITy, TypeNo, HasAux, ElementAux, TagName); - short Class; + short Class = 0; if( CTy.getTag() == dwarf::DW_TAG_union_type) Class = PIC16Dbg::C_MOU; else if (CTy.getTag() == dwarf::DW_TAG_structure_type) |