From 3e27aa16e6923f727105330d0b51218f4b9519c8 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 18 Oct 2007 22:59:23 +0000 Subject: [PATCH] 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 --- Sema/SemaExpr.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.50.1