Fix build.

llvm-svn: 120108
This commit is contained in:
Anders Carlsson 2010-11-24 19:52:29 +00:00
parent 63e0f2050f
commit c5bcaa373b
1 changed files with 2 additions and 1 deletions

View File

@ -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.