]> granicus.if.org Git - clang/commit
MS inline asm: When LLVM called back to Clang to parse a name and do name
authorDmitri Gribenko <gribozavr@gmail.com>
Tue, 3 Dec 2013 00:48:09 +0000 (00:48 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Tue, 3 Dec 2013 00:48:09 +0000 (00:48 +0000)
commit59953e5dc44f35094cae45b1286a7d72e7525ae0
treed0e5348222dd02871f00a9bcac3e4ae29579f42e
parent2e1373febc5dcfe5215d03f5c060dd3893919fa9
MS inline asm: When LLVM called back to Clang to parse a name and do name
lookup, if parsing failed, we did not restore the lexer state properly, and
eventually crashed.  This change ensures that we always consume all the tokens
from the new token stream we started to parse the name from inline asm.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196182 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseStmt.cpp
test/Sema/ms-inline-asm.c