[llvm-commits] [llvm] r74253 - /llvm/trunk/lib/Target/PIC16/PIC16DebugInfo.cpp

Daniel Dunbar daniel at zuster.org
Thu Jun 25 19:03:53 PDT 2009


Author: ddunbar
Date: Thu Jun 25 21:03:52 2009
New Revision: 74253

URL: http://llvm.org/viewvc/llvm-project?rev=74253&view=rev
Log:
Fix may-be-used-uninitialized warning.

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16DebugInfo.cpp

Modified: llvm/trunk/lib/Target/PIC16/PIC16DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16DebugInfo.cpp?rev=74253&r1=74252&r2=74253&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16DebugInfo.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16DebugInfo.cpp Thu Jun 25 21:03:52 2009
@@ -300,7 +300,7 @@
     // 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)





More information about the llvm-commits mailing list