Fix fallout from r183298, unused function (CollectPrimaryBases) causing the -Werror build to fail