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 | e7d42501c25acb2b52f0ac38e186e7f43015d5e9 (patch) | |
| tree | 577c5f44a5f7fad252c1ebfac1012ca0782171ad /llvm/lib/Target/PIC16 | |
| parent | 2d3d1cd91ae582cba417074eff1c95adf29828e1 (diff) | |
| download | bcm5719-llvm-e7d42501c25acb2b52f0ac38e186e7f43015d5e9.tar.gz bcm5719-llvm-e7d42501c25acb2b52f0ac38e186e7f43015d5e9.zip | |
Fix may-be-used-uninitialized warning.
llvm-svn: 74253
Diffstat (limited to 'llvm/lib/Target/PIC16')
| -rw-r--r-- | llvm/lib/Target/PIC16/PIC16DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16DebugInfo.cpp b/llvm/lib/Target/PIC16/PIC16DebugInfo.cpp index 27551cd13d8..430058805dd 100644 --- a/llvm/lib/Target/PIC16/PIC16DebugInfo.cpp +++ b/llvm/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) |

