mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
MC: initialise MCAsmParser variable
Properly initialise HadError to false during construction. Detected as use-of-uninitialised variable by MSan! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c553cfe79
commit
327edb432a
@ -498,8 +498,8 @@ AsmParser::AsmParser(SourceMgr &_SM, MCContext &_Ctx, MCStreamer &_Out,
|
|||||||
const MCAsmInfo &_MAI)
|
const MCAsmInfo &_MAI)
|
||||||
: Lexer(_MAI), Ctx(_Ctx), Out(_Out), MAI(_MAI), SrcMgr(_SM),
|
: Lexer(_MAI), Ctx(_Ctx), Out(_Out), MAI(_MAI), SrcMgr(_SM),
|
||||||
PlatformParser(nullptr), CurBuffer(0), MacrosEnabledFlag(true),
|
PlatformParser(nullptr), CurBuffer(0), MacrosEnabledFlag(true),
|
||||||
CppHashLineNumber(0), AssemblerDialect(~0U), IsDarwin(false),
|
HadError(false), CppHashLineNumber(0), AssemblerDialect(~0U),
|
||||||
ParsingInlineAsm(false) {
|
IsDarwin(false), ParsingInlineAsm(false) {
|
||||||
// Save the old handler.
|
// Save the old handler.
|
||||||
SavedDiagHandler = SrcMgr.getDiagHandler();
|
SavedDiagHandler = SrcMgr.getDiagHandler();
|
||||||
SavedDiagContext = SrcMgr.getDiagContext();
|
SavedDiagContext = SrcMgr.getDiagContext();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user