[cfe-commits] r69720 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/sizeof-interface.m

Chris Lattner sabre at nondot.org
Tue Apr 21 14:14:42 PDT 2009


Author: lattner
Date: Tue Apr 21 16:14:41 2009
New Revision: 69720

URL: http://llvm.org/viewvc/llvm-project?rev=69720&view=rev
Log:
temporarily downgrade to a warning.


Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
    cfe/trunk/test/SemaObjC/sizeof-interface.m

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=69720&r1=69719&r2=69720&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Tue Apr 21 16:14:41 2009
@@ -922,7 +922,7 @@
 def err_sizeof_forward_interface : Error<
   "invalid application of '%select{alignof|sizeof}1' to a forward declared"
   " interface %0">;
-def err_sizeof_nonfragile_interface : Error<
+def err_sizeof_nonfragile_interface : Warning<
   "invalid application of '%select{alignof|sizeof}1' to interface %0 in "
   "non-fragile ABI">;
 def err_atdef_nonfragile_interface : Error<

Modified: cfe/trunk/test/SemaObjC/sizeof-interface.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/sizeof-interface.m?rev=69720&r1=69719&r2=69720&view=diff

==============================================================================
--- cfe/trunk/test/SemaObjC/sizeof-interface.m (original)
+++ cfe/trunk/test/SemaObjC/sizeof-interface.m Tue Apr 21 16:14:41 2009
@@ -13,7 +13,7 @@
 @end
 
 // size == 4
-int g1[ sizeof(I0)     // expected-error {{invalid application of 'sizeof' to interface 'I0' in non-fragile ABI}}
+int g1[ sizeof(I0)     // expected-warning {{invalid application of 'sizeof' to interface 'I0' in non-fragile ABI}}
        == 4 ? 1 : -1];
 
 @implementation I0
@@ -22,7 +22,7 @@
 
 // size == 4 (we do not include extended properties in the
 // sizeof).
-int g2[ sizeof(I0)   // expected-error {{invalid application of 'sizeof' to interface 'I0' in non-fragile ABI}}
+int g2[ sizeof(I0)   // expected-warning {{invalid application of 'sizeof' to interface 'I0' in non-fragile ABI}}
        == 4 ? 1 : -1];
 
 @interface I1





More information about the cfe-commits mailing list