From 5982b2c08967917aa3623dc4003c515c3dfad4c4 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Fri, 24 Feb 2017 21:44:52 +0000 Subject: [PATCH] Initialize MCContext::InlineSrcMgr in the constructor. Found with ASan (and a local source change) on test/CodeGen/XCore/section-name.ll. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296179 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCContext.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 3dfc0af1c03..cc7533f87b7 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -56,8 +56,9 @@ AsSecureLogFileName("as-secure-log-file-name", MCContext::MCContext(const MCAsmInfo *mai, const MCRegisterInfo *mri, const MCObjectFileInfo *mofi, const SourceMgr *mgr, bool DoAutoReset) - : SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi), Symbols(Allocator), - UsedNames(Allocator), CurrentDwarfLoc(0, 0, 0, DWARF2_FLAG_IS_STMT, 0, 0), + : SrcMgr(mgr), InlineSrcMgr(nullptr), MAI(mai), MRI(mri), MOFI(mofi), + Symbols(Allocator), UsedNames(Allocator), + CurrentDwarfLoc(0, 0, 0, DWARF2_FLAG_IS_STMT, 0, 0), AutoReset(DoAutoReset) { SecureLogFile = AsSecureLogFileName; -- 2.50.1