diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-08-24 17:16:23 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-08-24 17:16:23 +0000 |
| commit | ad3e7118c40711faf5f51f08d599dbd525d3408a (patch) | |
| tree | 4fe78e44a506ba59dcc7d7e344a712acf07b807a /lib/CodeGen/CodeGenTypes.cpp | |
| parent | 2d82719c580f878e0810d868b366a3ac2d00746f (diff) | |
| download | clang-ad3e7118c40711faf5f51f08d599dbd525d3408a.tar.gz clang-ad3e7118c40711faf5f51f08d599dbd525d3408a.tar.bz2 clang-ad3e7118c40711faf5f51f08d599dbd525d3408a.tar.xz | |
More member pointer work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 52499d98c4..48f8192094 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -479,7 +479,7 @@ void CodeGenTypes::addBitFieldInfo(const FieldDecl *FD, unsigned FieldNo, } /// getCGRecordLayout - Return record layout info for the given llvm::Type. -const CGRecordLayout * +const CGRecordLayout & CodeGenTypes::getCGRecordLayout(const TagDecl *TD) const { const Type *Key = Context.getTagDeclType(TD).getTypePtr(); @@ -487,5 +487,5 @@ CodeGenTypes::getCGRecordLayout(const TagDecl *TD) const { = CGRecordLayouts.find(Key); assert (I != CGRecordLayouts.end() && "Unable to find record layout information for type"); - return I->second; + return *I->second; } |
