commit | 3e27aa16e6923f727105330d0b51218f4b9519c8 | [log] [tgz] |
---|---|---|
author | Fariborz Jahanian <fjahanian@apple.com> | Thu Oct 18 22:59:23 2007 +0000 |
committer | Fariborz Jahanian <fjahanian@apple.com> | Thu Oct 18 22:59:23 2007 +0000 |
tree | ab8af83e1b7007a6add39526a3f9cb26c6a3377d | |
parent | 18e17e773acf2f917050dfa69116c6d90d0a0608 [diff] [blame] |
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 281e524..795f6da 100644 --- a/Sema/SemaExpr.cpp +++ b/Sema/SemaExpr.cpp
@@ -1947,6 +1947,8 @@ } QualType t = GetObjcProtoType(AtLoc); + if (t.isNull()) + return true; return new ObjCProtocolExpr(t, PDecl, AtLoc, RParenLoc); }