[llvm] r296179 - Initialize MCContext::InlineSrcMgr in the constructor.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 24 13:44:52 PST 2017
Author: eugenis
Date: Fri Feb 24 15:44:52 2017
New Revision: 296179
URL: http://llvm.org/viewvc/llvm-project?rev=296179&view=rev
Log:
Initialize MCContext::InlineSrcMgr in the constructor.
Found with ASan (and a local source change) on test/CodeGen/XCore/section-name.ll.
Modified:
llvm/trunk/lib/MC/MCContext.cpp
Modified: llvm/trunk/lib/MC/MCContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCContext.cpp?rev=296179&r1=296178&r2=296179&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCContext.cpp (original)
+++ llvm/trunk/lib/MC/MCContext.cpp Fri Feb 24 15:44:52 2017
@@ -56,8 +56,9 @@ AsSecureLogFileName("as-secure-log-file-
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;
More information about the llvm-commits
mailing list