commit | d2c0de6b4410f1b19423d7f7550413508a7db8b1 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue Feb 23 17:58:35 2010 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue Feb 23 17:58:35 2010 +0000 |
tree | 5dc80e4bd24c2cdedfee0e2ac60a8c7cc13dab27 | |
parent | d8ecd5e902d17f27edf9d22f7d24105b6f04891d [diff] [blame] |
PR6386: Fix a recent regression in IRGen of cast-to-union constructs. llvm-svn: 96958
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index 97455c7..ac189a0 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -189,7 +189,7 @@ CGF.ConvertType(PtrTy)); EmitInitializationToLValue(E->getSubExpr(), LValue::MakeAddr(CastPtr, Qualifiers()), - E->getType()); + E->getSubExpr()->getType()); break; }