summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2009-05-21 09:52:38 +0000
committerJay Foad <jay.foad@gmail.com>2009-05-21 09:52:38 +0000
commit7d0479f2c2d60ccff381ce63105168bd132fb304 (patch)
tree417d43f95d605528391e6ab8c9a460f9b6347b83 /clang/lib/Sema/SemaTemplateInstantiate.cpp
parent9fc7856e3b6f549030863bf35441b456a0affec7 (diff)
downloadbcm5719-llvm-7d0479f2c2d60ccff381ce63105168bd132fb304.tar.gz
bcm5719-llvm-7d0479f2c2d60ccff381ce63105168bd132fb304.zip
Use v.data() instead of &v[0] when SmallVector v might be empty.
llvm-svn: 72210
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index 08019aaea43..a5b09117885 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp
@@ -686,7 +686,7 @@ Sema::InstantiateBaseSpecifiers(CXXRecordDecl *Instantiation,
}
if (!Invalid &&
- AttachBaseSpecifiers(Instantiation, &InstantiatedBases[0],
+ AttachBaseSpecifiers(Instantiation, InstantiatedBases.data(),
InstantiatedBases.size()))
Invalid = true;
@@ -770,7 +770,7 @@ Sema::InstantiateClass(SourceLocation PointOfInstantiation,
// Finish checking fields.
ActOnFields(0, Instantiation->getLocation(), DeclPtrTy::make(Instantiation),
- &Fields[0], Fields.size(), SourceLocation(), SourceLocation(),
+ Fields.data(), Fields.size(), SourceLocation(), SourceLocation(),
0);
// Add any implicitly-declared members that we might need.
OpenPOWER on IntegriCloud