diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-11-21 23:56:04 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-11-21 23:56:04 +0000 |
| commit | 01a79acd9a5a701c7ddb46174ddfcb0e54349f4a (patch) | |
| tree | e303418f98da09949cf05e40d23d53ab852c761f /lib/CodeGen/CGExprConstant.cpp | |
| parent | 13dcd00615de5c4279d97bdf63cd5f0a14fd9dcc (diff) | |
| download | clang-01a79acd9a5a701c7ddb46174ddfcb0e54349f4a.tar.gz clang-01a79acd9a5a701c7ddb46174ddfcb0e54349f4a.tar.bz2 clang-01a79acd9a5a701c7ddb46174ddfcb0e54349f4a.tar.xz | |
Support emitting aggregate class initializers. Fixes PR5581.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 40b845dba0..d0475dd8df 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -673,7 +673,7 @@ public: if (ILE->getType()->isArrayType()) return EmitArrayInitialization(ILE); - if (ILE->getType()->isStructureType()) + if (ILE->getType()->isRecordType()) return EmitStructInitialization(ILE); if (ILE->getType()->isUnionType()) |
