diff options
Diffstat (limited to 'clang/Parse/ParseStmt.cpp')
-rw-r--r-- | clang/Parse/ParseStmt.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/Parse/ParseStmt.cpp b/clang/Parse/ParseStmt.cpp index 8d5be6868cf..6f871da118d 100644 --- a/clang/Parse/ParseStmt.cpp +++ b/clang/Parse/ParseStmt.cpp @@ -957,14 +957,12 @@ Parser::StmtResult Parser::ParseAsmStatement() { if (Tok.is(tok::colon)) { ConsumeToken(); - if (isTokenStringLiteral()) { - // Parse the asm-string list for clobbers. - while (1) { - ParseAsmStringLiteral(); + // Parse the asm-string list for clobbers. + while (1) { + ParseAsmStringLiteral(); - if (Tok.isNot(tok::comma)) break; - ConsumeToken(); - } + if (Tok.isNot(tok::comma)) break; + ConsumeToken(); } } |