fix a crash parsing spass

llvm-svn: 39637
This commit is contained in:
Chris Lattner 2007-06-09 06:16:32 +00:00
parent ff591e24eb
commit b2dd241b15
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ Sema::ParseDeclarator(Scope *S, Declarator &D, ExprTy *Init,
Sema::DeclTy *Sema::FinalizeDeclaratorGroup(Scope *S, DeclTy *group) {
// Often we have single declarators, handle them quickly.
Decl *Group = static_cast<Decl*>(group);
if (Group->getNextDeclarator() == 0) return Group;
if (Group == 0 || Group->getNextDeclarator() == 0) return Group;
Decl *NewGroup = 0;
while (Group) {