llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-codegen 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 Data to be nonnull. --- Full diff: https://github.com/llvm/llvm-project/pull/123157.diff 1 Files Affected: - (modified) clang/lib/CodeGen/ConstantInitBuilder.cpp (+1-1) ``````````diff diff --git a/clang/lib/CodeGen/ConstantInitBuilder.cpp b/clang/lib/CodeGen/ConstantInitBuilder.cpp index ddbf3ef743370b..ce1fe137c1919b 100644 --- a/clang/lib/CodeGen/ConstantInitBuilder.cpp +++ b/clang/lib/CodeGen/ConstantInitBuilder.cpp @@ -29,7 +29,7 @@ llvm::Type *ConstantInitFuture::getType() const { void ConstantInitFuture::abandon() { assert(Data && "abandoning null future"); - if (auto builder = Data.dyn_cast<ConstantInitBuilderBase*>()) { + if (auto *builder = dyn_cast<ConstantInitBuilderBase *>(Data)) { builder->abandon(0); } Data = nullptr; `````````` </details> https://github.com/llvm/llvm-project/pull/123157 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits