git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350938
91177308-0d34-0410-b5e6-
96231b3b80d8
NewPAL.getRetAttributes(),
NewArgAttrs));
- remove(CS.getInstruction()->getParent()->getParent());
+ remove(CS.getInstruction()->getFunction());
U->set(BitcastNew);
}
}
for (User *U : V->users()) {
if (Instruction *I = dyn_cast<Instruction>(U)) {
- remove(I->getParent()->getParent());
+ remove(I->getFunction());
} else if (isa<GlobalValue>(U)) {
// do nothing
} else if (Constant *C = dyn_cast<Constant>(U)) {