GCC fails if there is a trailing colon but no clobbers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44265 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Parse/ParseStmt.cpp b/Parse/ParseStmt.cpp
index 8d5be68..6f871da 100644
--- a/Parse/ParseStmt.cpp
+++ b/Parse/ParseStmt.cpp
@@ -957,14 +957,12 @@
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();
}
}