From 4e716e07d90a18ac83dd94d157ec676530bc78f9 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Sun, 25 Jan 2009 13:34:47 +0000 Subject: [PATCH] Fix compile error from r62953. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62959 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Expr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index defb0c3e91..63484d1b87 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -733,7 +733,8 @@ bool Expr::isConstantInitializer(ASTContext &Ctx) const { return cast(this)->getSubExpr()->isConstantInitializer(Ctx); break; case DesignatedInitExprClass: - return cast(Init)->getInit()->isConstantInitializer(Ctx); + return cast(this)-> + getInit()->isConstantInitializer(Ctx); } return isEvaluatable(Ctx); -- 2.40.0