diff options
| author | Anders Carlsson <andersca@mac.com> | 2010-11-24 19:52:29 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2010-11-24 19:52:29 +0000 |
| commit | c5bcaa373b83f2262bcb5b6243185a1a455c3043 (patch) | |
| tree | 505ac38ba076799c5dec000c18b3e62f73365b3d /clang/lib/CodeGen | |
| parent | 63e0f2050f8a8197234138d270512e80de2c111e (diff) | |
| download | bcm5719-llvm-c5bcaa373b83f2262bcb5b6243185a1a455c3043.tar.gz bcm5719-llvm-c5bcaa373b83f2262bcb5b6243185a1a455c3043.zip | |
Fix build.
llvm-svn: 120108
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenTypes.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp index 5ff9da4c48c..ea7d18f0ca0 100644 --- a/clang/lib/CodeGen/CodeGenTypes.cpp +++ b/clang/lib/CodeGen/CodeGenTypes.cpp @@ -485,8 +485,9 @@ const llvm::Type *CodeGenTypes::ConvertTagDeclType(const TagDecl *TD) { /// getCGRecordLayout - Return record layout info for the given llvm::Type. const CGRecordLayout & -CodeGenTypes::getCGRecordLayout(const RecordDecl *TD) const { +CodeGenTypes::getCGRecordLayout(const RecordDecl *TD) { const Type *Key = Context.getTagDeclType(TD).getTypePtr(); + const CGRecordLayout *Layout = CGRecordLayouts.lookup(Key); if (!Layout) { // Compute the type information. |

