In code like this:

typedef float float4 __attribute__((vector_size (16)));
void addFloat4(float4 a, float4 b) {
    float4 temp;
}

make sure to add 'temp' to the stmt tree as a declstmt.

llvm-svn: 39722
This commit is contained in:
Chris Lattner 2007-07-10 05:03:31 +00:00
parent 50d4abd24c
commit 436806ad05
1 changed files with 2 additions and 3 deletions

View File

@ -233,9 +233,8 @@ Parser::StmtResult Parser::ParseIdentifierStatement(bool OnlyStatement) {
Declarator DeclaratorInfo(DS, Declarator::BlockContext);
ParseDeclarator(DeclaratorInfo);
ParseInitDeclaratorListAfterFirstDeclarator(DeclaratorInfo);
// FIXME: Return this as a declstmt.
return 0;
DeclTy *Decl = ParseInitDeclaratorListAfterFirstDeclarator(DeclaratorInfo);
return Decl ? Actions.ParseDeclStmt(Decl) : 0;
}
// Otherwise, this is an expression. Seed it with II and parse it.