[clang] [clang] Migrate away from PointerUnion::dyn_cast (NFC) (PR #225319)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 22 00:53:35 PDT 2026
llvmorg-github-actions[bot] 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>
We must use dyn_cast_if_present here because the operands can be null,
which I have verified with assert(!isNull()) on check-clang.
Assisted-by: Antigravity
---
Full diff: https://github.com/llvm/llvm-project/pull/225319.diff
3 Files Affected:
- (modified) clang/include/clang/AST/DeclFriend.h (+1-1)
- (modified) clang/lib/Sema/SemaConcept.cpp (+1-1)
- (modified) clang/lib/Sema/SemaOverload.cpp (+3-3)
``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````
</details>
https://github.com/llvm/llvm-project/pull/225319
More information about the cfe-commits
mailing list