From: Fariborz Jahanian Date: Thu, 18 Oct 2007 22:59:23 +0000 (+0000) Subject: Check for Nullness of value built in GetObjcProtoType. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e27aa16e6923f727105330d0b51218f4b9519c8;p=clang Check for Nullness of value built in GetObjcProtoType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43155 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp index 281e524350..795f6da6ac 100644 --- a/Sema/SemaExpr.cpp +++ b/Sema/SemaExpr.cpp @@ -1947,6 +1947,8 @@ Sema::ExprResult Sema::ParseObjCProtocolExpression(IdentifierInfo *ProtocolId, } QualType t = GetObjcProtoType(AtLoc); + if (t.isNull()) + return true; return new ObjCProtocolExpr(t, PDecl, AtLoc, RParenLoc); }