Correctly initialize LineSectionSymbol. Thanks to Duncan Sands for noticing it.
[oota-llvm.git] / lib / MC / MCObjectStreamer.cpp
index a7eb8b03a2c94ec94d3d117493cd791008a727b5..906bdc3ab8c8c6a9d6e903bf2dfa4474e152a371 100644 (file)
@@ -266,7 +266,7 @@ void MCObjectStreamer::EmitGPRel32Value(const MCExpr *Value) {
 
 void MCObjectStreamer::FinishImpl() {
   // Dump out the dwarf file & directory tables and line tables.
-  const MCSymbol *LineSectionSymbol;
+  const MCSymbol *LineSectionSymbol = NULL;
   if (getContext().hasDwarfFiles())
     LineSectionSymbol = MCDwarfFileTable::Emit(this);