diff options
Diffstat (limited to 'clang/Sema/SemaExpr.cpp')
| -rw-r--r-- | clang/Sema/SemaExpr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/Sema/SemaExpr.cpp b/clang/Sema/SemaExpr.cpp index 379a033d418..9d3e9eb970e 100644 --- a/clang/Sema/SemaExpr.cpp +++ b/clang/Sema/SemaExpr.cpp @@ -2061,9 +2061,10 @@ Sema::ExprResult Sema::ParseObjCProtocolExpression(IdentifierInfo *ProtocolId, 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); } |

