[cfe-commits] r62292 - /cfe/trunk/lib/AST/ExprConstant.cpp

Fariborz Jahanian fjahanian at apple.com
Thu Jan 15 17:42:12 PST 2009


Author: fjahanian
Date: Thu Jan 15 19:42:12 2009
New Revision: 62292

URL: http://llvm.org/viewvc/llvm-project?rev=62292&view=rev
Log:
postpone sizeof objc-class computatin to the clients.

Modified:
    cfe/trunk/lib/AST/ExprConstant.cpp

Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=62292&r1=62291&r2=62292&view=diff

==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Thu Jan 15 19:42:12 2009
@@ -793,6 +793,10 @@
     return false;
   }
 
+  // sizeof (objc class) ?
+  if (SrcTy->isObjCInterfaceType())
+    return false;
+  
   bool isSizeOf = E->isSizeOf();
   
   // GCC extension: sizeof(function) = 1.





More information about the cfe-commits mailing list