summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmtAsm.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-21 18:15:08 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-21 18:15:08 +0000
commit19160b6e39bad6a013843bfc4fecea95f095f365 (patch)
tree2a7f1d518a5bfaad061596a18ff29e41a94d9e80 /clang/lib/Sema/SemaStmtAsm.cpp
parent79e766c38e61a672a9a1845b6075ce6db940d158 (diff)
downloadbcm5719-llvm-19160b6e39bad6a013843bfc4fecea95f095f365.tar.gz
bcm5719-llvm-19160b6e39bad6a013843bfc4fecea95f095f365.zip
[ms-inline asm] Expose the ErrorInfo from the MatchInstructionImpl. In general,
this is the index of the operand that failed to match. llvm-svn: 162296
Diffstat (limited to 'clang/lib/Sema/SemaStmtAsm.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAsm.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp
index b4b91ec445a..d03a0df3f95 100644
--- a/clang/lib/Sema/SemaStmtAsm.cpp
+++ b/clang/lib/Sema/SemaStmtAsm.cpp
@@ -589,8 +589,10 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc,
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.");
OpenPOWER on IntegriCloud