[cfe-commits] r43155 - /cfe/trunk/Sema/SemaExpr.cpp

Fariborz Jahanian fjahanian at apple.com
Thu Oct 18 15:59:23 PDT 2007


Author: fjahanian
Date: Thu Oct 18 17:59:23 2007
New Revision: 43155

URL: http://llvm.org/viewvc/llvm-project?rev=43155&view=rev
Log:
Check for Nullness of value built in GetObjcProtoType.

Modified:
    cfe/trunk/Sema/SemaExpr.cpp

Modified: cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaExpr.cpp?rev=43155&r1=43154&r2=43155&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Thu Oct 18 17:59:23 2007
@@ -1947,6 +1947,8 @@
   }
   
   QualType t = GetObjcProtoType(AtLoc);
+  if (t.isNull())
+    return true;
   return new ObjCProtocolExpr(t, PDecl, AtLoc, RParenLoc);
 }
 





More information about the cfe-commits mailing list