[cfe-commits] r55287 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

Anders Carlsson andersca at mac.com
Sun Aug 24 11:05:20 PDT 2008


Author: andersca
Date: Sun Aug 24 13:05:19 2008
New Revision: 55287

URL: http://llvm.org/viewvc/llvm-project?rev=55287&view=rev
Log:
Convert qualified interface types correctly.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=55287&r1=55286&r2=55287&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Sun Aug 24 13:05:19 2008
@@ -321,9 +321,11 @@
     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.





More information about the cfe-commits mailing list