]> granicus.if.org Git - clang/commitdiff
Try a little hack to fix the memset duplication on windows.
authorEric Christopher <echristo@apple.com>
Tue, 26 Jul 2011 23:18:10 +0000 (23:18 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 26 Jul 2011 23:18:10 +0000 (23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136179 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/2004-02-13-Memset.c

index fe01fdeb060e27f88ef5ae7761c90aa10f6efad8..36a140a8e50b43b6aff11a64671166fedeb0f743 100644 (file)
@@ -1,7 +1,11 @@
 // RUN: %clang_cc1  %s -emit-llvm -o - | grep llvm.memset | count 3
 
+#ifndef memset
 void *memset(void*, int, unsigned long);
+#endif
+#ifndef bzero
 void bzero(void*, unsigned long);
+#endif
 
 void test(int* X, char *Y) {
   // CHECK: call i8* llvm.memset