[cfe-commits] r62953 - /cfe/trunk/lib/AST/Expr.cpp
Eli Friedman
eli.friedman at gmail.com
Sat Jan 24 19:27:41 PST 2009
Author: efriedma
Date: Sat Jan 24 21:27:40 2009
New Revision: 62953
URL: http://llvm.org/viewvc/llvm-project?rev=62953&view=rev
Log:
One more case for Expr::isConstantInitializer; I think this covers
everything that we aren't intending to implement in Expr::Evaluate.
Modified:
cfe/trunk/lib/AST/Expr.cpp
Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=62953&r1=62952&r2=62953&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Sat Jan 24 21:27:40 2009
@@ -732,6 +732,8 @@
if (getType()->isRecordType())
return cast<CastExpr>(this)->getSubExpr()->isConstantInitializer(Ctx);
break;
+ case DesignatedInitExprClass:
+ return cast<DesignatedInitExpr>(Init)->getInit()->isConstantInitializer(Ctx);
}
return isEvaluatable(Ctx);
More information about the cfe-commits
mailing list