[PATCH] D134311: [clang] handle extended integer constant expressions in _Static_assert (PR #57687)
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 20 22:37:37 PDT 2022
tbaeder added inline comments.
================
Comment at: clang/lib/Sema/SemaDeclCXX.cpp:16733
+ while (auto *BaseCast = dyn_cast<ImplicitCastExpr>(BaseExpr))
+ BaseExpr = BaseCast->getSubExpr();
+ }
----------------
There is `Expr::ignoreParenImpCasts()` or `Expr::ImpCasts()` that should do this loop for you.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134311/new/
https://reviews.llvm.org/D134311
More information about the cfe-commits
mailing list