aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-03-03 14:24:15 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-03-03 14:24:15 +0000
commite6ec02e8afe1bec8f9de5c907a50a6efdee261a0 (patch)
tree10faeee52d90780089c9adeb6ba3d9bfcdd103f4 /lib/MC/MCObjectStreamer.cpp
parent61318736ee089055a6a029da2eaf6dfcb54cf7a4 (diff)
Correctly initialize LineSectionSymbol. Thanks to Duncan Sands for noticing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCObjectStreamer.cpp')
-rw-r--r--lib/MC/MCObjectStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp
index a7eb8b03a2..906bdc3ab8 100644
--- a/lib/MC/MCObjectStreamer.cpp
+++ b/lib/MC/MCObjectStreamer.cpp
@@ -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);