[PATCH] D78240: [CallSite removal][CallSiteSplitting] Use CallBase instead of CallSite. NFC
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 14:19:27 PDT 2020
dblaikie accepted this revision.
dblaikie added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp:334-335
- Instruction *NewCI =
- &*std::prev(SplitBlock->getTerminator()->getIterator());
- CallSite NewCS(NewCI);
- addConditions(NewCS, Preds[i].second);
+ CallBase *NewCI =
+ cast<CallBase>(&*std::prev(SplitBlock->getTerminator()->getIterator()));
+ addConditions(*NewCI, Preds[i].second);
----------------
Could use 'auto *' on the LHS here
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78240/new/
https://reviews.llvm.org/D78240
More information about the llvm-commits
mailing list