From de7a0fcdf9f30cb5a97aab614f3975d93cd9926f Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 15 Aug 2010 02:27:09 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1