Fix compile error from r62953.

llvm-svn: 62959
This commit is contained in:
Sebastian Redl 2009-01-25 13:34:47 +00:00
parent 21add8f983
commit a865ade730
1 changed files with 2 additions and 1 deletions

View File

@ -733,7 +733,8 @@ bool Expr::isConstantInitializer(ASTContext &Ctx) const {
return cast<CastExpr>(this)->getSubExpr()->isConstantInitializer(Ctx);
break;
case DesignatedInitExprClass:
return cast<DesignatedInitExpr>(Init)->getInit()->isConstantInitializer(Ctx);
return cast<DesignatedInitExpr>(this)->
getInit()->isConstantInitializer(Ctx);
}
return isEvaluatable(Ctx);