diff --git a/clang/www/compatibility.html b/clang/www/compatibility.html index 09072b6a7c31..fb47400e0346 100644 --- a/clang/www/compatibility.html +++ b/clang/www/compatibility.html @@ -175,7 +175,7 @@ sizeof.m:4:14: error: invalid application of 'sizeof' to interface 'NSArray' in

Code that relies on the size of an Objective-C class is likely to be broken anyway, since that size is not actually constant. To address this problem, use the Objective-C runtime API function -clang_getInstanceSize():

+class_getInstanceSize():

   class_getInstanceSize([NSArray class])