From cbdae223ad4019a879cca5c99ce25ab278f0b516 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Wed, 16 Nov 2016 13:45:34 +0000 Subject: [PATCH] Rangify for loop, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287102 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaTemplate.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index e87fc73c69..4e941a53b8 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -2990,12 +2990,10 @@ Sema::CheckVarTemplateId(VarTemplateDecl *Template, SourceLocation TemplateLoc, << Decl; // Print the matching partial specializations. - for (SmallVector::iterator P = Matched.begin(), - PEnd = Matched.end(); - P != PEnd; ++P) - Diag(P->Partial->getLocation(), diag::note_partial_spec_match) - << getTemplateArgumentBindingsText( - P->Partial->getTemplateParameters(), *P->Args); + for (MatchResult P : Matched) + Diag(P.Partial->getLocation(), diag::note_partial_spec_match) + << getTemplateArgumentBindingsText(P.Partial->getTemplateParameters(), + *P.Args); return true; } -- 2.40.0