================
@@ -21889,7 +21889,7 @@ ExprResult Sema::CheckPlaceholderExpr(Expr *E) {
// shouldn't need to do any further diagnostic here.
if (!E->containsErrors())
Diag(E->getBeginLoc(), diag::err_array_section_use)
- << cast<ArraySectionExpr>(E)->isOMPArraySection();
+ << cast<ArraySectionExpr>(E->IgnoreParens())->isOMPArraySection();
----------------
Serosh-commits wrote:
actually when i did it it works correctly and acutally it is better when we do
that because ignoring the parenthesis during the start , it remove the
unessential checks IgnoreParens() calls inside every switch cases it works
correctly though
https://github.com/llvm/llvm-project/pull/183633
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits