[ms-inline asm] Expose the ErrorInfo from the MatchInstructionImpl.  In general,
this is the index of the operand that failed to match.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162296 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp
index b4b91ec..d03a0df 100644
--- a/lib/Sema/SemaStmtAsm.cpp
+++ b/lib/Sema/SemaStmtAsm.cpp
@@ -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.");