[cfe-dev] CompoundLiteralExpr::getInitializer() should have return type InitListExpr?

Ted Kremenek kremenek at apple.com
Mon Oct 27 13:25:45 PDT 2008

I noticed that CompoundLiteralExpr::getInitializer() has a return type  
of Expr*.  After scanning Parser/Sema, it seems to me that this  
expression should always be of type InitListExpr.  Is there a reason  
we don't return an InitListExpr* instead of Expr*?

More information about the cfe-dev mailing list