llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) <details> <summary>Changes</summary> Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with // isa<T>, cast<T> and the llvm::dyn_cast<T> Literal migration would result in dyn_cast_if_present (see the definition of PointerUnion::dyn_cast), but this patch uses dyn_cast because we expect AP to be nonnull. --- Full diff: https://github.com/llvm/llvm-project/pull/123158.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaFunctionEffects.cpp (+1-1) ``````````diff diff --git a/clang/lib/Sema/SemaFunctionEffects.cpp b/clang/lib/Sema/SemaFunctionEffects.cpp index 0d56a74b066e8e..31980abd23fd1e 100644 --- a/clang/lib/Sema/SemaFunctionEffects.cpp +++ b/clang/lib/Sema/SemaFunctionEffects.cpp @@ -567,7 +567,7 @@ class Analyzer { while (!VerificationQueue.empty()) { const Decl *D = VerificationQueue.back(); if (FuncAnalysisPtr AP = DeclAnalysis.lookup(D)) { - if (auto *Pending = AP.dyn_cast<PendingFunctionAnalysis *>()) { + if (auto *Pending = dyn_cast<PendingFunctionAnalysis *>(AP)) { // All children have been traversed; finish analysis. finishPendingAnalysis(D, Pending); } `````````` </details> https://github.com/llvm/llvm-project/pull/123158 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits