[svn r41] new'd dynamic arrays are now initialized with the element type's default initializer.

initial label/goto support.
This commit is contained in:
Tomas Lindquist Olsen
2007-10-10 03:38:24 +02:00
parent 4fdad2c750
commit 67a92f5d51
10 changed files with 206 additions and 113 deletions

View File

@@ -3464,7 +3464,8 @@ LabelStatement::LabelStatement(Loc loc, Identifier *ident, Statement *statement)
this->statement = statement;
this->tf = NULL;
this->lblock = NULL;
this->isReturnLabel = 0;
this->isReturnLabel = 0;
this->llvmBB = NULL;
}
Statement *LabelStatement::syntaxCopy()

View File

@@ -51,7 +51,8 @@ enum TOK;
namespace llvm
{
class Value;
class Value;
class BasicBlock;
}
// Back end
@@ -714,7 +715,9 @@ struct LabelStatement : Statement
Statement *inlineScan(InlineScanState *iss);
void toIR(IRState *irs);
void toIR(IRState *irs);
llvm::BasicBlock* llvmBB;
};
struct LabelDsymbol : Dsymbol