aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-29 04:06:22 +0000
committerChris Lattner <sabre@nondot.org>2007-10-29 04:06:22 +0000
commit69efba74cf5488060accf34c011b33ce6c15ece0 (patch)
treea29b781c96bb7fe314a9deb5052d50b57b7dfa54
parentfe795956194141c91ae555985c9b930595bff43f (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43434 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Parse/ParseStmt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Parse/ParseStmt.cpp b/Parse/ParseStmt.cpp
index 68781c1be4..068921a616 100644
--- a/Parse/ParseStmt.cpp
+++ b/Parse/ParseStmt.cpp
@@ -985,6 +985,10 @@ void Parser::ParseAsmOperandsOpt() {
SkipUntil(tok::r_paren);
return;
}
+
+ // Eat the identifier, FIXME: capture it.
+ ConsumeToken();
+
MatchRHSPunctuation(tok::r_square, Loc);
}