diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2012-02-29 00:00:28 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2012-02-29 00:00:28 +0000 |
| commit | 576cbd03b4e1aaddf28caec97fb6146dc070da8c (patch) | |
| tree | a30ee09bd78174fdb54050e3c39d9a6c013cb64f /clang/lib/CodeGen | |
| parent | 617f84ddbd2e5c5b8c0504d923b6c4e539c35b9b (diff) | |
| download | bcm5719-llvm-576cbd03b4e1aaddf28caec97fb6146dc070da8c.tar.gz bcm5719-llvm-576cbd03b4e1aaddf28caec97fb6146dc070da8c.zip | |
Make sure list-initialization of arrays works correctly in explicit type conversions. PR12121.
llvm-svn: 151674
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGExprAgg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index ce0533c7dce..899577c4ede 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/lib/CodeGen/CGExprAgg.cpp @@ -898,7 +898,7 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) { return; } - llvm::Value *DestPtr = Dest.getAddr(); + llvm::Value *DestPtr = EnsureSlot(E->getType()).getAddr(); // Handle initialization of an array. if (E->getType()->isArrayType()) { |

