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/123013.diff 1 Files Affected: - (modified) clang/lib/CodeGen/CGOpenMPRuntime.cpp (+1-1) ``````````diff diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp index 244e3066f8fe41..ddcb04d53661d0 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -7768,7 +7768,7 @@ class MappableExprsHandler { &Data : RecordLayout) { if (Data.isNull()) continue; - if (const auto *Base = Data.dyn_cast<const CXXRecordDecl *>()) + if (const auto *Base = dyn_cast<const CXXRecordDecl *>(Data)) getPlainLayout(Base, Layout, /*AsBase=*/true); else Layout.push_back(cast<const FieldDecl *>(Data)); `````````` </details> https://github.com/llvm/llvm-project/pull/123013 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits