]> granicus.if.org Git - clang/commitdiff
Check for Nullness of value built in GetObjcProtoType.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 18 Oct 2007 22:59:23 +0000 (22:59 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 18 Oct 2007 22:59:23 +0000 (22:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43155 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaExpr.cpp

index 281e524350f125ac0a9400827925b03ff85d264d..795f6da6ac1c1e6e0a7a7533a4db58fd3bd28e0d 100644 (file)
@@ -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);
 }