[PATCH] D78142: [llvm][NFC][CallSite] Remove Implementation uses of CallSite
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 13:31:53 PDT 2020
craig.topper added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/GlobalOpt.cpp:723
} else if (isa<CallInst>(I) || isa<InvokeInst>(I)) {
- CallSite CS(I);
- if (CS.getCalledValue() == V) {
+ CallBase *CB = dyn_cast<CallBase>(I);
+ if (CB->getCalledValue() == V) {
----------------
Should be cast not dyn_cast
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78142/new/
https://reviews.llvm.org/D78142
More information about the llvm-commits
mailing list