]> granicus.if.org Git - clang/commitdiff
Fix build.
authorAnders Carlsson <andersca@mac.com>
Wed, 24 Nov 2010 19:52:29 +0000 (19:52 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 24 Nov 2010 19:52:29 +0000 (19:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120108 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenTypes.cpp

index 5ff9da4c48cc4c222956db2c9bc1fc4894236a43..ea7d18f0ca03cfb643f844b5b06c1842d29a5d77 100644 (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.