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.");
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to