r218288 - Attempt to fix Sema/builtin-object-size.c after r218258
Hans Wennborg
hans at hanshq.net
Mon Sep 22 17:02:36 PDT 2014
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);
More information about the cfe-commits
mailing list