aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-01-12 11:06:42 -0800
committerGitHub <noreply@github.com>2025-01-12 11:06:42 -0800
commit43fdd6e81d8ea42d1de8fd96fe45957dee54cb32 (patch)
treec7f50c6e58c72e0c618926760462fedc8bfb1044 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent3f1486f08e0dd64136fb7f50e38cd618dd0255d2 (diff)
downloadllvm-43fdd6e81d8ea42d1de8fd96fe45957dee54cb32.zip
llvm-43fdd6e81d8ea42d1de8fd96fe45957dee54cb32.tar.gz
llvm-43fdd6e81d8ea42d1de8fd96fe45957dee54cb32.tar.bz2
[memprof] Migrate away from PointerUnion::is (NFC) (#122622)
Note that PointerUnion::is have 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> In this patch, I'm calling call().getBase() for an instance of PointerUnion. call() alone would return an instance of IndexCall, which wraps PointerUnion. Note that isa<> cannot directly accept an instance of IndexCall, at least without defining CastInfo. I'm not touching PointerUnion::dyn_cast for now because it's a bit complicated; we could blindly migrate it to dyn_cast_if_present, but we should probably use dyn_cast when the operand is known to be non-null.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions