diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 4d6756e1b62f..a4b4a5495791 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -1446,8 +1446,8 @@ bool AsmParser::ParseStatement(ParseStatementInfo &Info) { return Error(IDLoc, "unknown directive"); } - // _emit - if (ParsingInlineAsm && IDVal == "_emit") + // _emit or __emit + if (ParsingInlineAsm && (IDVal == "_emit" || IDVal == "__emit")) return ParseDirectiveEmit(IDLoc, Info); CheckForValidSection();