[clang] a6d1366 - [NFC] Remove a pair of incorrect comments from ParseOpenACC
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 10 12:42:10 PDT 2024
Author: erichkeane
Date: 2024-04-10T12:42:05-07:00
New Revision: a6d1366b736cad85b3bb9fbdda340e07488d6cde
URL: https://github.com/llvm/llvm-project/commit/a6d1366b736cad85b3bb9fbdda340e07488d6cde
DIFF: https://github.com/llvm/llvm-project/commit/a6d1366b736cad85b3bb9fbdda340e07488d6cde.diff
LOG: [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.
Added:
Modified:
clang/lib/Parse/ParseOpenACC.cpp
Removed:
################################################################################
diff --git a/clang/lib/Parse/ParseOpenACC.cpp b/clang/lib/Parse/ParseOpenACC.cpp
index 59a4a5f5346762..b487a1968d1ec8 100644
--- a/clang/lib/Parse/ParseOpenACC.cpp
+++ b/clang/lib/Parse/ParseOpenACC.cpp
@@ -843,8 +843,7 @@ Parser::OpenACCClauseParseResult Parser::ParseOpenACCClauseParams(
}
case OpenACCClauseKind::If: {
ExprResult CondExpr = ParseOpenACCConditionalExpr(*this);
- // An invalid expression can be just about anything, so just give up on
- // this clause list.
+
if (CondExpr.isInvalid()) {
Parens.skipToEnd();
return OpenACCCanContinue();
@@ -966,8 +965,7 @@ Parser::OpenACCClauseParseResult Parser::ParseOpenACCClauseParams(
case OpenACCClauseKind::Self: {
assert(DirKind != OpenACCDirectiveKind::Update);
ExprResult CondExpr = ParseOpenACCConditionalExpr(*this);
- // An invalid expression can be just about anything, so just give up on
- // this clause list.
+
if (CondExpr.isInvalid()) {
Parens.skipToEnd();
return OpenACCCanContinue();
More information about the cfe-commits
mailing list