summaryrefslogtreecommitdiffstats
path: root/clang/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
commitaa7c1cb5f8b2de3f4d77ce0e0d5d94dc40768a47 (patch)
tree5b5783ff332c27eb927e8aa9f5c539a0ef86c3d0 /clang/lib/Parse/ParseStmt.cpp
parentd63f1f5a9c75c33cb36e784a1fd9331112ae75bc (diff)
downloadbcm5719-llvm-aa7c1cb5f8b2de3f4d77ce0e0d5d94dc40768a47.tar.gz
bcm5719-llvm-aa7c1cb5f8b2de3f4d77ce0e0d5d94dc40768a47.zip
[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)). llvm-svn: 161986
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r--clang/lib/Parse/ParseStmt.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index 0af1d082981..a934847c015 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud