Mercurial > projects > ldc
diff dmd/statement.c @ 1640:9bf06e02070b
Merge DMD 1.057.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 08 Mar 2010 21:39:20 +0100 |
parents | 44b145be2ef5 |
children |
line wrap: on
line diff
--- a/dmd/statement.c Mon Mar 08 20:09:18 2010 +0100 +++ b/dmd/statement.c Mon Mar 08 21:39:20 2010 +0100 @@ -1,6 +1,6 @@ // Compiler implementation of the D programming language -// Copyright (c) 1999-2009 by Digital Mars +// Copyright (c) 1999-2010 by Digital Mars // All Rights Reserved // written by Walter Bright // http://www.digitalmars.com @@ -101,13 +101,10 @@ void Statement::warning(const char *format, ...) { - if (global.params.warnings && !global.gag) - { - va_list ap; - va_start(ap, format); - ::vwarning(loc, format, ap); - va_end( ap ); - } + va_list ap; + va_start(ap, format); + ::vwarning(loc, format, ap); + va_end( ap ); } int Statement::hasBreak() @@ -737,6 +734,7 @@ Statement *s = (Statement *) statements->data[i]; if (s) { + //printf("[%d]: %s\n", i, s->toChars()); s = s->semantic(scd); statements->data[i] = s; } @@ -798,6 +796,7 @@ return result; } + int UnrolledLoopStatement::comeFrom() { int comefrom = FALSE; @@ -3466,7 +3465,6 @@ Statement *s = new ExpStatement(loc, exp); exp = NULL; s = s->semantic(sc); - loc = 0; return new CompoundStatement(loc, s, this); }