r218288 - Attempt to fix Sema/builtin-object-size.c after r218258
jahanian
fjahanian at apple.com
Tue Sep 23 08:52:40 PDT 2014
Cute. Thank you.
- Fariborz
On Sep 22, 2014, at 5:02 PM, Hans Wennborg <hans at hanshq.net> wrote:
> Author: hans
> Date: Mon Sep 22 19:02:36 2014
> New Revision: 218288
>
> URL: http://llvm.org/viewvc/llvm-project?rev=218288&view=rev
> Log:
> Attempt to fix Sema/builtin-object-size.c after r218258
>
> The type of size_t varies between targets.
>
> Modified:
> cfe/trunk/test/Sema/builtin-object-size.c
>
> Modified: cfe/trunk/test/Sema/builtin-object-size.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/builtin-object-size.c?rev=218288&r1=218287&r2=218288&view=diff
> ==============================================================================
> --- cfe/trunk/test/Sema/builtin-object-size.c (original)
> +++ cfe/trunk/test/Sema/builtin-object-size.c Mon Sep 22 19:02:36 2014
> @@ -27,7 +27,7 @@ void f4(const char *fmt, ...) {
> }
>
> // rdar://18334276
> -typedef unsigned long size_t;
> +typedef __typeof__(sizeof(int)) size_t;
> void * memcset(void *restrict dst, int src, size_t n);
> void * memcpy(void *restrict dst, const void *restrict src, size_t n);
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list