mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +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)
|
||||
: Lexer(_MAI), Ctx(_Ctx), Out(_Out), MAI(_MAI), SrcMgr(_SM),
|
||||
PlatformParser(nullptr), CurBuffer(0), MacrosEnabledFlag(true),
|
||||
CppHashLineNumber(0), AssemblerDialect(~0U), IsDarwin(false),
|
||||
ParsingInlineAsm(false) {
|
||||
HadError(false), CppHashLineNumber(0), AssemblerDialect(~0U),
|
||||
IsDarwin(false), ParsingInlineAsm(false) {
|
||||
// Save the old handler.
|
||||
SavedDiagHandler = SrcMgr.getDiagHandler();
|
||||
SavedDiagContext = SrcMgr.getDiagContext();
|
||||
|
Loading…
x
Reference in New Issue
Block a user