aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-08-15 02:27:09 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-08-15 02:27:09 +0000
commitde7a0fcdf9f30cb5a97aab614f3975d93cd9926f (patch)
tree893366e9dedf9e51444d84dbe909dfa2328cb52e /lib/Sema/SemaTemplateInstantiateDecl.cpp
parentba6f816d633e3b88c38c6896c2d78d19489650f2 (diff)
Use Enumerators.data() instead of &Enumerators[0] to fix a potential
assertion failure. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiateDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp
index feedc2cbd0..bfe3154458 100644
--- a/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -661,7 +661,7 @@ Decl *TemplateDeclInstantiator::VisitEnumDecl(EnumDecl *D) {
// FIXME: Empty Scope and AttributeList (required to handle attribute packed).
SemaRef.ActOnEnumBody(Enum->getLocation(), SourceLocation(), SourceLocation(),
Sema::DeclPtrTy::make(Enum),
- &Enumerators[0], Enumerators.size(),
+ Enumerators.data(), Enumerators.size(),
0, 0);
return Enum;