diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-21 05:19:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-21 05:19:11 +0000 |
commit | 81045d8dcd967def69d8e0945566214a9fe9ffcc (patch) | |
tree | 8fc73049eac5cdf259097d18db04b3d559a3134d /lib/AST/Expr.cpp | |
parent | ce84c16a9560b424d109e74126e45f99c6a08fcd (diff) |
Fix PR4027 + rdar://6808859, we were rejecting implicit casts of
aggregates even though we already accept explicit ones. Easy fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 46dce59d3e..970d295192 100644 --- a/lib/AST/Expr.cpp +++ b/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 |