[clang] Reapply "[clang] Suppress -Wuninitialized for unevaluated builtin args" (PR #245821)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 26 09:04:20 PST 2026
================
@@ -423,7 +424,25 @@ static bool hasTrivialBody(const CallExpr *CE) {
return false;
}
+void ClassifyRefs::ignoreRefs(const Stmt *S) {
+ if (const auto *DRE = dyn_cast_or_null<DeclRefExpr>(S))
----------------
steakhal wrote:
Can `S` be null here? If not, let's use an `assert` and replace the `dyn_cast_or_null` with `dyn_cast`.
https://github.com/llvm/llvm-project/pull/245821
More information about the cfe-commits
mailing list