diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-21 21:14:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-21 21:14:41 +0000 |
commit | f365d5b3b3e27129443cca7ca64b0f849910b574 (patch) | |
tree | f613a7912f032c49a197bf0d8d0c5b9c56284531 | |
parent | a104de8ec5f2ebd1e28982d43841e406809cc85d (diff) |
temporarily downgrade to a warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69720 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
-rw-r--r-- | test/SemaObjC/sizeof-interface.m | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 94602071ae..20fa1e8541 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -922,7 +922,7 @@ def ext_sizeof_void_type : Extension< 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< diff --git a/test/SemaObjC/sizeof-interface.m b/test/SemaObjC/sizeof-interface.m index 3bbe18db70..ac029fddfc 100644 --- a/test/SemaObjC/sizeof-interface.m +++ b/test/SemaObjC/sizeof-interface.m @@ -13,7 +13,7 @@ int g0 = sizeof(I0); // expected-error{{invalid application of 'sizeof' to a for @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 @@ int g1[ sizeof(I0) // expected-error {{invalid application of 'sizeof' to in // 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 |