]> granicus.if.org Git - clang/commitdiff
id<Foo> is a POD type.
authorAnders Carlsson <andersca@mac.com>
Mon, 9 Feb 2009 21:53:01 +0000 (21:53 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 9 Feb 2009 21:53:01 +0000 (21:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64175 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Type.cpp
test/SemaObjCXX/vararg-non-pod.mm

index bf10b9ad70c695feee7a9bd60bf831ae2b108489..62875ed5cbd15196985545399787af5b1884ab6b 100644 (file)
@@ -746,6 +746,7 @@ bool Type::isPODType() const {
   case MemberPointer:
   case Vector:
   case ExtVector:
+  case ObjCQualifiedId:
     return true;
 
   case Tagged:
index 83266381ae6a3c880539ca17a8ca14d46da83a15..70028c7e58119ac1c2e3360fe63474c02a709c5b 100644 (file)
@@ -2,6 +2,8 @@
 
 extern char version[];
 
+@protocol P;
+
 class C {
 public:
   C(int);
@@ -19,3 +21,12 @@ void t1(D *d)
   [d g:10, version];
 }
 
+void t2(D *d, id p)
+{
+  [d g:10, p];
+}
+
+void t3(D *d, id<P> p)
+{
+  [d g:10, p];
+}