[cfe-commits] r162296 - /cfe/trunk/lib/Sema/SemaStmtAsm.cpp
Chad Rosier
mcrosier at apple.com
Tue Aug 21 11:15:08 PDT 2012
Author: mcrosier
Date: Tue Aug 21 13:15:08 2012
New Revision: 162296
URL: http://llvm.org/viewvc/llvm-project?rev=162296&view=rev
Log:
[ms-inline asm] Expose the ErrorInfo from the MatchInstructionImpl. In general,
this is the index of the operand that failed to match.
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=162296&r1=162295&r2=162296&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmtAsm.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmtAsm.cpp Tue Aug 21 13:15:08 2012
@@ -589,8 +589,10 @@
assert (!HadError && "Unexpected error parsing instruction");
// Match the MCInstr.
+ unsigned ErrorInfo;
SmallVector<llvm::MCInst, 2> Instrs;
- HadError = TargetParser->MatchInstruction(IDLoc, Operands, Instrs);
+ HadError = TargetParser->MatchInstruction(IDLoc, Operands, Instrs,
+ ErrorInfo);
assert (!HadError && "Unexpected error matching instruction");
assert ((Instrs.size() == 1) && "Expected only a single instruction.");
More information about the cfe-commits
mailing list