summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-21 05:19:11 +0000
committerChris Lattner <sabre@nondot.org>2009-04-21 05:19:11 +0000
commit1f02e054a93a6332d7e946dc10a39df60cdd8492 (patch)
tree7ea78533da82e9f1bc7695da946c04470a059b33 /clang/lib/AST/Expr.cpp
parent16f11c73198d1621f59c4eeb3f311419d81c8689 (diff)
downloadbcm5719-llvm-1f02e054a93a6332d7e946dc10a39df60cdd8492.tar.gz
bcm5719-llvm-1f02e054a93a6332d7e946dc10a39df60cdd8492.zip
Fix PR4027 + rdar://6808859, we were rejecting implicit casts of
aggregates even though we already accept explicit ones. Easy fix. llvm-svn: 69661
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 46dce59d3e9..970d2951921 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -1064,6 +1064,7 @@ bool Expr::isConstantInitializer(ASTContext &Ctx) const {
return Exp->getSubExpr()->isConstantInitializer(Ctx);
break;
}
+ case ImplicitCastExprClass:
case CStyleCastExprClass:
// Handle casts with a destination that's a struct or union; this
// deals with both the gcc no-op struct cast extension and the
OpenPOWER on IntegriCloud