diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-03-30 22:26:12 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-30 22:26:12 +0000 |
| commit | 6915cbe7a2a338ccb747bb95158d4c0c12a6462a (patch) | |
| tree | 62f7183f45ccce3c6ed7fd1571ac9efa960810fc | |
| parent | 072d0bb2474f6bcdc3ab8542f536588ae89d2cfa (diff) | |
| download | bcm5719-llvm-6915cbe7a2a338ccb747bb95158d4c0c12a6462a.tar.gz bcm5719-llvm-6915cbe7a2a338ccb747bb95158d4c0c12a6462a.zip | |
IRGen: Narrow getCGRecordLayout type.
llvm-svn: 99946
| -rw-r--r-- | clang/lib/CodeGen/CodeGenTypes.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CodeGenTypes.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp index 285d60a70f4..2339640d451 100644 --- a/clang/lib/CodeGen/CodeGenTypes.cpp +++ b/clang/lib/CodeGen/CodeGenTypes.cpp @@ -494,7 +494,7 @@ void CodeGenTypes::addBitFieldInfo(const FieldDecl *FD, unsigned FieldNo, /// getCGRecordLayout - Return record layout info for the given llvm::Type. const CGRecordLayout & -CodeGenTypes::getCGRecordLayout(const TagDecl *TD) const { +CodeGenTypes::getCGRecordLayout(const RecordDecl *TD) const { const Type *Key = Context.getTagDeclType(TD).getTypePtr(); llvm::DenseMap<const Type*, CGRecordLayout *>::const_iterator I = CGRecordLayouts.find(Key); diff --git a/clang/lib/CodeGen/CodeGenTypes.h b/clang/lib/CodeGen/CodeGenTypes.h index c8bced32d3d..1443516b0d7 100644 --- a/clang/lib/CodeGen/CodeGenTypes.h +++ b/clang/lib/CodeGen/CodeGenTypes.h @@ -148,7 +148,7 @@ public: /// and/or incomplete argument types, this will return the opaque type. const llvm::Type *GetFunctionTypeForVtable(const CXXMethodDecl *MD); - const CGRecordLayout &getCGRecordLayout(const TagDecl*) const; + const CGRecordLayout &getCGRecordLayout(const RecordDecl*) const; /// getLLVMFieldNo - Return llvm::StructType element number /// that corresponds to the field FD. |

