Patch to implement "Protocol" as a built-in type declared as
"@class Protocol;"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44670 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp
index 379a033..9d3e9eb 100644
--- a/Sema/SemaExpr.cpp
+++ b/Sema/SemaExpr.cpp
@@ -2061,9 +2061,10 @@
return true;
}
- QualType t = GetObjcProtoType(AtLoc);
+ QualType t = Context.getObjcProtoType();
if (t.isNull())
return true;
+ t = Context.getPointerType(t);
return new ObjCProtocolExpr(t, PDecl, AtLoc, RParenLoc);
}