From: Craig Topper Date: Sun, 14 Jul 2013 16:47:36 +0000 (+0000) Subject: Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad5b69da4774a4eec09af96af23a2fe793fd00f8;p=clang Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186284 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index fbf8a1abb0..2fd379d55d 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -1041,7 +1041,7 @@ llvm::Value *CGObjCGNU::EmitNSAutoreleasePoolClassRef(CodeGenFunction &CGF) { llvm::Value *CGObjCGNU::GetSelector(CodeGenFunction &CGF, Selector Sel, const std::string &TypeEncoding, bool lval) { - SmallVector &Types = SelectorTable[Sel]; + SmallVectorImpl &Types = SelectorTable[Sel]; llvm::GlobalAlias *SelValue = 0; diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 107eed35a0..5502a041d2 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -1216,13 +1216,13 @@ namespace { // of the excluded constructs are used. class DeclExtractor : public EvaluatedExprVisitor { llvm::SmallPtrSet &Decls; - SmallVector &Ranges; + SmallVectorImpl &Ranges; bool Simple; public: typedef EvaluatedExprVisitor Inherited; DeclExtractor(Sema &S, llvm::SmallPtrSet &Decls, - SmallVector &Ranges) : + SmallVectorImpl &Ranges) : Inherited(S.Context), Decls(Decls), Ranges(Ranges),