forked from OSchip/llvm-project
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:
parent
50d4abd24c
commit
436806ad05
|
@ -233,9 +233,8 @@ Parser::StmtResult Parser::ParseIdentifierStatement(bool OnlyStatement) {
|
||||||
Declarator DeclaratorInfo(DS, Declarator::BlockContext);
|
Declarator DeclaratorInfo(DS, Declarator::BlockContext);
|
||||||
ParseDeclarator(DeclaratorInfo);
|
ParseDeclarator(DeclaratorInfo);
|
||||||
|
|
||||||
ParseInitDeclaratorListAfterFirstDeclarator(DeclaratorInfo);
|
DeclTy *Decl = ParseInitDeclaratorListAfterFirstDeclarator(DeclaratorInfo);
|
||||||
// FIXME: Return this as a declstmt.
|
return Decl ? Actions.ParseDeclStmt(Decl) : 0;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, this is an expression. Seed it with II and parse it.
|
// Otherwise, this is an expression. Seed it with II and parse it.
|
||||||
|
|
Loading…
Reference in New Issue