aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-02-02 09:31:06 -0800
committerGitHub <noreply@github.com>2025-02-02 09:31:06 -0800
commit43b7124c5749b3f3276adf1b869e623e163e230e (patch)
tree9c1dd29e85240d632a83a4500a1a9713ebd5b5b1 /llvm/lib/CodeGen/ReachingDefAnalysis.cpp
parent2f98ae5029a1f03793ca2016585c48075a1aa03a (diff)
downloadllvm-43b7124c5749b3f3276adf1b869e623e163e230e.zip
llvm-43b7124c5749b3f3276adf1b869e623e163e230e.tar.gz
llvm-43b7124c5749b3f3276adf1b869e623e163e230e.tar.bz2
[AST] Migrate away from PointerUnion::dyn_cast (NFC) (#125379)
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> This patch migrates the use of PointerUnion::dyn_cast to dyn_cast_if_present because the non-const variant of getInitializedFieldInUnion is known to encounter null in ArrayFillerOrUnionFieldInit. See: commit 563c7c5539f05e7f8cbb42565c1f24466019f38b Author: Kazu Hirata <kazu@google.com> Date: Sat Jan 25 14:05:01 2025 -0800 FWIW, I am not aware of any test case in check-clang that triggers null here.
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions