[llvm] [memprof] Migrate away from PointerUnion::dyn_cast (NFC) (PR #123716)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 01:39:00 PST 2025
================
@@ -3560,7 +3560,7 @@ ModuleCallsiteContextGraph::getAllocationCallType(const CallInfo &Call) const {
AllocationType
IndexCallsiteContextGraph::getAllocationCallType(const CallInfo &Call) const {
- const auto *AI = Call.call().dyn_cast<AllocInfo *>();
+ const auto *AI = dyn_cast<AllocInfo *>(Call.call());
----------------
nikic wrote:
```suggestion
const auto *AI = cast<AllocInfo *>(Call.call());
```
https://github.com/llvm/llvm-project/pull/123716
More information about the llvm-commits
mailing list