list just to see if whether the list is empty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46555
91177308-0d34-0410-b5e6-
96231b3b80d8
if (LoadInst* L = dyn_cast<LoadInst>(BBI)) {
// However, if this load is unused, we can go ahead and remove it, and
// not have to worry about it making our pointer undead!
- if (L->getNumUses() == 0) {
+ if (L->use_empty()) {
MD.removeInstruction(L);
// DCE instructions only used to calculate that load
deadPointers.erase(A);
// Dead alloca's can be DCE'd when we reach them
- if (A->getNumUses() == 0) {
+ if (A->use_empty()) {
MD.removeInstruction(A);
// DCE instructions only used to calculate that load