[cfe-commits] r111092 - /cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
Eli Friedman
eli.friedman at gmail.com
Sat Aug 14 19:27:09 PDT 2010
Author: efriedma
Date: Sat Aug 14 21:27:09 2010
New Revision: 111092
URL: http://llvm.org/viewvc/llvm-project?rev=111092&view=rev
Log:
Use Enumerators.data() instead of &Enumerators[0] to fix a potential
assertion failure.
Modified:
cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp?rev=111092&r1=111091&r2=111092&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Sat Aug 14 21:27:09 2010
@@ -661,7 +661,7 @@
// 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;
More information about the cfe-commits
mailing list