[cfe-commits] r162307 - /cfe/trunk/lib/Sema/SemaStmtAsm.cpp
Chad Rosier
mcrosier at apple.com
Tue Aug 21 12:37:55 PDT 2012
Author: mcrosier
Date: Tue Aug 21 14:37:55 2012
New Revision: 162307
URL: http://llvm.org/viewvc/llvm-project?rev=162307&view=rev
Log:
[ms-inline asm] Do not report a Parser error when matching inline assembly.
Modified:
cfe/trunk/lib/Sema/SemaStmtAsm.cpp
Modified: cfe/trunk/lib/Sema/SemaStmtAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmtAsm.cpp?rev=162307&r1=162306&r2=162307&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmtAsm.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmtAsm.cpp Tue Aug 21 14:37:55 2012
@@ -592,7 +592,8 @@
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.");
More information about the cfe-commits
mailing list