diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-21 19:37:55 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-21 19:37:55 +0000 |
commit | 51a6b3f58b0dbbc51a77b8f4a509720954406ceb (patch) | |
tree | eeaa0f5cd32fa851d0aa03e10a3f2682495efe6b | |
parent | a6e5a6e60ba744463819c1ee2595539c6055382b (diff) |
[ms-inline asm] Do not report a Parser error when matching inline assembly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162307 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaStmtAsm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp index d03a0df3f9..b962d9d4a2 100644 --- a/lib/Sema/SemaStmtAsm.cpp +++ b/lib/Sema/SemaStmtAsm.cpp @@ -592,7 +592,8 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, unsigned ErrorInfo; SmallVector<llvm::MCInst, 2> Instrs; HadError = TargetParser->MatchInstruction(IDLoc, Operands, Instrs, - ErrorInfo); + ErrorInfo, + /*matchingInlineAsm*/ true); assert (!HadError && "Unexpected error matching instruction"); assert ((Instrs.size() == 1) && "Expected only a single instruction."); |