Make sure Op->getType() is a PointerType before we cast<> it.