summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmtAsm.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-13 00:26:22 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-13 00:26:22 +0000
commitce17b0f5b805630bb71f99bfdf820e2c57a34f7e (patch)
tree9d7385c6f1df501adc790dd72ff46d04d7b7c2b1 /clang/lib/Sema/SemaStmtAsm.cpp
parent4996355592ddbb7c1dd513c68d09f40418667684 (diff)
downloadbcm5719-llvm-ce17b0f5b805630bb71f99bfdf820e2c57a34f7e.tar.gz
bcm5719-llvm-ce17b0f5b805630bb71f99bfdf820e2c57a34f7e.zip
Update for r165858.
llvm-svn: 165859
Diffstat (limited to 'clang/lib/Sema/SemaStmtAsm.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAsm.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp
index f99c9834531..017cdb90f62 100644
--- a/clang/lib/Sema/SemaStmtAsm.cpp
+++ b/clang/lib/Sema/SemaStmtAsm.cpp
@@ -456,6 +456,7 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
// Change to the Intel dialect.
Parser->setAssemblerDialect(1);
Parser->setTargetParser(*TargetParser.get());
+ Parser->setParsingInlineAsm(true);
// Prime the lexer.
Parser->Lex();
@@ -482,9 +483,9 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
// Match the MCInstr.
unsigned Opcode;
unsigned ErrorInfo;
- HadError = TargetParser->MatchInstruction(IDLoc, Operands, *Str.get(),
- Opcode, ErrorInfo,
- /*matchingInlineAsm*/ true);
+ HadError = TargetParser->MatchAndEmitInstruction(IDLoc, Opcode, Operands,
+ *Str.get(), ErrorInfo,
+ /*MatchingInlineAsm*/ true);
// If we had an error parsing the operands, fail gracefully.
if (HadError) { DEF_SIMPLE_MSASM(EmptyAsmStr); return Owned(NS); }
OpenPOWER on IntegriCloud