OldPtr is llvm::Instruction. Remove unneeded cast<>.