Skip to content

Commit a6d1366

Browse files
committed
[NFC] Remove a pair of incorrect comments from ParseOpenACC
We attempt to continue parsing, but the comment says the opposite. Just remove the inaccurate comments in this patch.
1 parent 7549b45 commit a6d1366

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Parse/ParseOpenACC.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,7 @@ Parser::OpenACCClauseParseResult Parser::ParseOpenACCClauseParams(
843843
}
844844
case OpenACCClauseKind::If: {
845845
ExprResult CondExpr = ParseOpenACCConditionalExpr(*this);
846-
// An invalid expression can be just about anything, so just give up on
847-
// this clause list.
846+
848847
if (CondExpr.isInvalid()) {
849848
Parens.skipToEnd();
850849
return OpenACCCanContinue();
@@ -966,8 +965,7 @@ Parser::OpenACCClauseParseResult Parser::ParseOpenACCClauseParams(
966965
case OpenACCClauseKind::Self: {
967966
assert(DirKind != OpenACCDirectiveKind::Update);
968967
ExprResult CondExpr = ParseOpenACCConditionalExpr(*this);
969-
// An invalid expression can be just about anything, so just give up on
970-
// this clause list.
968+
971969
if (CondExpr.isInvalid()) {
972970
Parens.skipToEnd();
973971
return OpenACCCanContinue();

0 commit comments

Comments
 (0)