summaryrefslogtreecommitdiff
path: root/lib/MC/MCAsmStreamer.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/MCAsmStreamer.cpp
parent61318736ee089055a6a029da2eaf6dfcb54cf7a4 (diff)
downloadllvm-e6ec02e8afe1bec8f9de5c907a50a6efdee261a0.tar.gz
llvm-e6ec02e8afe1bec8f9de5c907a50a6efdee261a0.tar.bz2
llvm-e6ec02e8afe1bec8f9de5c907a50a6efdee261a0.tar.xz
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/MCAsmStreamer.cpp')
-rw-r--r--lib/MC/MCAsmStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp
index 742d15d9e7..11f0f72963 100644
--- a/lib/MC/MCAsmStreamer.cpp
+++ b/lib/MC/MCAsmStreamer.cpp
@@ -1311,7 +1311,7 @@ void MCAsmStreamer::EmitRawText(StringRef String) {
void MCAsmStreamer::FinishImpl() {
// FIXME: This header is duplicated with MCObjectStreamer
// Dump out the dwarf file & directory tables and line tables.
- const MCSymbol *LineSectionSymbol;
+ const MCSymbol *LineSectionSymbol = NULL;
if (getContext().hasDwarfFiles() && !UseLoc)
LineSectionSymbol = MCDwarfFileTable::Emit(this);