Fix a parser bug on labeled inline asm stmts, allowing us
to parse stuff like:
asm volatile("1: rex64/fxrstor (%[fx])\n\t"
"2:\n"
".section .fixup,\"ax\"\n"
"3: movl $-1,%[err]\n"
" jmp 2b\n"
".previous\n"
".section __ex_table,\"a\"\n"
" .align 8\n"
" .quad 1b,3b\n"
".previous"
: [err] "=r" (err)
: [fx] "cdaSDb" (fx), "m" (*fx), "0" (0));
This reduces # diagnostics on PR1750 from 49 to 37.
llvm-svn: 43434
This commit is contained in:
parent
73c56c0735
commit
645ff3ff61
|
|
@ -985,6 +985,10 @@ void Parser::ParseAsmOperandsOpt() {
|
|||
SkipUntil(tok::r_paren);
|
||||
return;
|
||||
}
|
||||
|
||||
// Eat the identifier, FIXME: capture it.
|
||||
ConsumeToken();
|
||||
|
||||
MatchRHSPunctuation(tok::r_square, Loc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue