Use auto iteration in lib/Transforms/Scalar/SampleProfile.cpp. No functional changes.