Mercurial > projects > ddmd
diff dmd/codegen/Util.d @ 74:7e0d548de9e6
Switch Arrays of Dsymbols to the new templated Vector type
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Sun, 29 Aug 2010 09:43:40 +0100 |
parents | ef02e2e203c2 |
children | ad4792a1cfd6 |
line wrap: on
line diff
--- a/dmd/codegen/Util.d Sat Aug 28 19:42:41 2010 +0400 +++ b/dmd/codegen/Util.d Sun Aug 29 09:43:40 2010 +0100 @@ -662,14 +662,11 @@ ad = s.isAttribDeclaration(); if (ad) { - Array decl = ad.include(null, null); + auto decl = ad.include(null, null); if (decl && decl.dim) { - for (size_t i = 0; i < decl.dim; i++) - { - s = cast(Dsymbol)decl.data[i]; + foreach(s; decl) e = el_combine(e, Dsymbol_toElem(s, irs)); - } } } else if ((vd = s.isVarDeclaration()) !is null)