Skip to content

Commit 58229d7

Browse files
committed
fix off by one error in position
1 parent 4ddd177 commit 58229d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Parser/openacc-parsers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ TYPE_PARSER(construct<OpenACCBlockConstruct>(
236236
Parser<AccBeginBlockDirective>{} / endAccLine, block,
237237
// TODO: This still allows mismatched directives.
238238
recovery(withMessage("expected OpenACC end block directive"_err_en_US,
239-
Parser<AccEndBlockDirective>{} / endAccLine),
239+
attempt(Parser<AccEndBlockDirective>{} / endAccLine)),
240240
// TODO: Is there a simpler way to build this?
241241
sourced(construct<AccEndBlockDirective>(
242242
sourced(construct<AccBlockDirective>(

0 commit comments

Comments
 (0)