Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update assert message
  • Loading branch information
erichkeane committed Apr 8, 2024
commit a0831060da7855e4ae9393201570bf017d49b63f
3 changes: 2 additions & 1 deletion clang/lib/Parse/ParseOpenACC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,8 @@ Parser::OpenACCDirectiveParseInfo Parser::ParseOpenACCDirective() {
assert(Tok.is(tok::annot_pragma_openacc_end) &&
"Didn't parse all OpenACC Clauses");
ParseInfo.EndLoc = ConsumeAnnotationToken();
assert(ParseInfo.EndLoc.isValid());
assert(ParseInfo.EndLoc.isValid(),
"Terminating annotation token not present");

return ParseInfo;
}
Expand Down