He did inform Harry that he was one of Voldemort’s horcruxes, although he was never intended to be one. The perk of this was that Voldemort had no knowledge of it, so he wouldn’t be aware that Harry wasn’t killed by his curse.