I think the proposed change with std::unique looks fine. But can you add a test alongside the patch? http://reviews.llvm.org/D7379 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/