]> granicus.if.org Git - clang/commitdiff
Convert qualified interface types correctly.
authorAnders Carlsson <andersca@mac.com>
Sun, 24 Aug 2008 18:05:19 +0000 (18:05 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 24 Aug 2008 18:05:19 +0000 (18:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55287 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenTypes.cpp

index 5b291d4616335e8fed616a1508421b177d23ad4d..9bba01f2521eb05890de0b4f2cb136c1b18f7569 100644 (file)
@@ -321,9 +321,11 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
     return llvm::StructType::get(IvarTypes);
   }
       
-  case Type::ObjCQualifiedInterface:
-    assert(0 && "FIXME: add missing functionality here");
-    break;
+  case Type::ObjCQualifiedInterface: {
+    ObjCQualifiedInterfaceType QIT = cast<ObjCQualifiedInterfaceType>(Ty);
+    
+    return ConvertTypeRecursive(Context.getObjCInterfaceType(QIT.getDecl()));
+  }
 
   case Type::ObjCQualifiedId:
     // Protocols don't influence the LLVM type.