[OPENMP] Fix for http://llvm.org/PR25221: Infinite loop while parsing OpenMP directive
Clang skipped annot_pragma_openmp token, while it should be considered as a stop token while skipping tokens. llvm-svn: 250684
This commit is contained in:
@@ -282,6 +282,7 @@ bool Parser::SkipUntil(ArrayRef<tok::TokenKind> Toks, SkipUntilFlags Flags) {
|
||||
// Ran out of tokens.
|
||||
return false;
|
||||
|
||||
case tok::annot_pragma_openmp:
|
||||
case tok::annot_pragma_openmp_end:
|
||||
// Stop before an OpenMP pragma boundary.
|
||||
case tok::annot_module_begin:
|
||||
|
||||
Reference in New Issue
Block a user