diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-02-24 21:44:52 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-02-24 21:44:52 +0000 |
commit | 0338ce83cd94d74e1d7b0e68e54cc4ceba6dcb1b (patch) | |
tree | 695f2953e2449c35c4b69ef1b4b51c49ab280038 /llvm/lib/MC/MCContext.cpp | |
parent | ab08bb8da9484f1603641b4e9a5133df41498533 (diff) | |
download | llvm-0338ce83cd94d74e1d7b0e68e54cc4ceba6dcb1b.zip llvm-0338ce83cd94d74e1d7b0e68e54cc4ceba6dcb1b.tar.gz llvm-0338ce83cd94d74e1d7b0e68e54cc4ceba6dcb1b.tar.bz2 |
Initialize MCContext::InlineSrcMgr in the constructor.
Found with ASan (and a local source change) on test/CodeGen/XCore/section-name.ll.
llvm-svn: 296179
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
-rw-r--r-- | llvm/lib/MC/MCContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 3dfc0af..cc7533f 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/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; |