aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-15 21:03:27 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-15 21:03:27 +0000
commitf37e4218bb40ed956f0ef1d2e5eee2b2c3aa20d2 (patch)
tree0cf93be1024300abf7efccf459d39b2503070eb2 /lib/Parse/ParseStmt.cpp
parent4e79fdfe22db1c982e8fdf8397fee426a8c57821 (diff)
[ms-inline asm] MSVC parses multiple __asm statements on a single line as one
statement. For example, if (x) __asm out dx, ax __asm out dx, ax results in a single inline asm statement (i.e., both "out dx, ax" statements are predicated on if(x)). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseStmt.cpp')
-rw-r--r--lib/Parse/ParseStmt.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp
index 0af1d08298..a934847c01 100644
--- a/lib/Parse/ParseStmt.cpp
+++ b/lib/Parse/ParseStmt.cpp
@@ -1686,11 +1686,6 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
if (Tok.is(tok::eof))
break;
- // The asm keyword is a statement separator, so multiple asm statements
- // are allowed on a single line.
- if (!InAsmComment && Tok.is(tok::kw_asm))
- break;
-
if (!InAsmComment && Tok.is(tok::semi)) {
// A semicolon in an asm is the start of a comment.
InAsmComment = true;