aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/dmd/canthrow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/d/dmd/canthrow.c')
-rw-r--r--gcc/d/dmd/canthrow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/d/dmd/canthrow.c b/gcc/d/dmd/canthrow.c
index 6111117..1e1fa58 100644
--- a/gcc/d/dmd/canthrow.c
+++ b/gcc/d/dmd/canthrow.c
@@ -251,9 +251,9 @@ bool Dsymbol_canThrow(Dsymbol *s, FuncDeclaration *func, bool mustNotThrow)
if (ad)
{
Dsymbols *decl = ad->include(NULL, NULL);
- if (decl && decl->dim)
+ if (decl && decl->length)
{
- for (size_t i = 0; i < decl->dim; i++)
+ for (size_t i = 0; i < decl->length; i++)
{
s = (*decl)[i];
if (Dsymbol_canThrow(s, func, mustNotThrow))
@@ -287,7 +287,7 @@ bool Dsymbol_canThrow(Dsymbol *s, FuncDeclaration *func, bool mustNotThrow)
//printf("%s\n", tm->toChars());
if (tm->members)
{
- for (size_t i = 0; i < tm->members->dim; i++)
+ for (size_t i = 0; i < tm->members->length; i++)
{
Dsymbol *sm = (*tm->members)[i];
if (Dsymbol_canThrow(sm, func, mustNotThrow))
@@ -297,7 +297,7 @@ bool Dsymbol_canThrow(Dsymbol *s, FuncDeclaration *func, bool mustNotThrow)
}
else if ((td = s->isTupleDeclaration()) != NULL)
{
- for (size_t i = 0; i < td->objects->dim; i++)
+ for (size_t i = 0; i < td->objects->length; i++)
{
RootObject *o = (*td->objects)[i];
if (o->dyncast() == DYNCAST_EXPRESSION)