From 91ff6ebef0c838d9af0f611b6b8bec734168f70a Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sun, 2 Nov 2014 02:40:26 +0000 Subject: [PATCH] Be sure to initialize DwarfCompileUnit::LabelBegin now that it may be skipped in initSection git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221079 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 63cf62c03f9..e670bb77515 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -19,7 +19,7 @@ DwarfCompileUnit::DwarfCompileUnit(unsigned UID, DICompileUnit Node, AsmPrinter *A, DwarfDebug *DW, DwarfFile *DWU) : DwarfUnit(UID, dwarf::DW_TAG_compile_unit, Node, A, DW, DWU), - Skeleton(nullptr) { + Skeleton(nullptr), LabelBegin(nullptr) { insertDIE(Node, &getUnitDie()); }