]> granicus.if.org Git - clang/commitdiff
Based on post-commit feedback over IRC with dblaikie, ideally, we should have a Small...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 2 Sep 2016 18:31:31 +0000 (18:31 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 2 Sep 2016 18:31:31 +0000 (18:31 +0000)
Since that doesn't exist right now, use a local variable instead of calling getAssocExprs() twice; NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280520 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index 36643812b02f66eda1e236b0a339f6393eea1b5d..7b03a62be123ed42bf10fb4bc5709ee7e391ada3 100644 (file)
@@ -12993,8 +12993,8 @@ Expr *Sema::FixOverloadedFunctionReference(Expr *E, DeclAccessPair Found,
 
       // Replace the resulting type information before rebuilding the generic
       // selection expression.
-      SmallVector<Expr *, 4> AssocExprs(GSE->getAssocExprs().begin(),
-                                        GSE->getAssocExprs().end());
+      ArrayRef<Expr *> A = GSE->getAssocExprs();
+      SmallVector<Expr *, 4> AssocExprs(A.begin(), A.end());
       unsigned ResultIdx = GSE->getResultIndex();
       AssocExprs[ResultIdx] = SubExpr;