Skip to content

Commit d6198a2

Browse files
committed
fix clobber parse
1 parent 2617ffe commit d6198a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gcc/rust/expand/rust-macro-builtins-asm.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,11 @@ parse_llvm_clobbers (LlvmAsmContext &ctx)
11311131

11321132
parser.maybe_skip_token (COMMA);
11331133
token = parser.peek_current_token ();
1134+
if (token->get_id () == COMMA)
1135+
{
1136+
parser.skip_token (COMMA);
1137+
token = parser.peek_current_token ();
1138+
}
11341139
}
11351140
}
11361141

0 commit comments

Comments
 (0)