Update for r165858.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165859 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp
index f99c983..017cdb9 100644
--- a/lib/Sema/SemaStmtAsm.cpp
+++ b/lib/Sema/SemaStmtAsm.cpp
@@ -456,6 +456,7 @@
// Change to the Intel dialect.
Parser->setAssemblerDialect(1);
Parser->setTargetParser(*TargetParser.get());
+ Parser->setParsingInlineAsm(true);
// Prime the lexer.
Parser->Lex();
@@ -482,9 +483,9 @@
// Match the MCInstr.
unsigned Opcode;
unsigned ErrorInfo;
- HadError = TargetParser->MatchInstruction(IDLoc, Operands, *Str.get(),
- Opcode, ErrorInfo,
- /*matchingInlineAsm*/ true);
+ HadError = TargetParser->MatchAndEmitInstruction(IDLoc, Opcode, Operands,
+ *Str.get(), ErrorInfo,
+ /*MatchingInlineAsm*/ true);
// If we had an error parsing the operands, fail gracefully.
if (HadError) { DEF_SIMPLE_MSASM(EmptyAsmStr); return Owned(NS); }