r328913 - [analyzer] Hopefully fix the ARM buildbot.

George Karpenkov via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 30 19:17:16 PDT 2018


Author: george.karpenkov
Date: Fri Mar 30 19:17:15 2018
New Revision: 328913

URL: http://llvm.org/viewvc/llvm-project?rev=328913&view=rev
Log:
[analyzer] Hopefully fix the ARM buildbot.

Modified:
    cfe/trunk/test/Analysis/bstring.c
    cfe/trunk/test/Analysis/string.c

Modified: cfe/trunk/test/Analysis/bstring.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/bstring.c?rev=328913&r1=328912&r2=328913&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/bstring.c (original)
+++ cfe/trunk/test/Analysis/bstring.c Fri Mar 30 19:17:15 2018
@@ -474,3 +474,12 @@ char radar_11125445_memcopythenlogfirstb
   free(bytes);
   return x;
 }
+
+struct S {
+  char f;
+};
+
+void nocrash_on_locint_offset(void *addr, void* from, struct S s) {
+  int iAdd = (int) addr;
+  memcpy(((void *) &(s.f)), from, iAdd);
+}

Modified: cfe/trunk/test/Analysis/string.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/string.c?rev=328913&r1=328912&r2=328913&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/string.c (original)
+++ cfe/trunk/test/Analysis/string.c Fri Mar 30 19:17:15 2018
@@ -30,7 +30,6 @@ typedef typeof(sizeof(int)) size_t;
 void clang_analyzer_eval(int);
 
 int scanf(const char *restrict format, ...);
-void *memcpy(void *, const void *, unsigned long);
 
 //===----------------------------------------------------------------------===
 // strlen()
@@ -1187,12 +1186,3 @@ void strncpy_exactly_matching_buffer2(ch
 	// This time, we know that y fits in x anyway.
   clang_analyzer_eval(strlen(x) <= 3); // expected-warning{{UNKNOWN}}
 }
-
-struct S {
-  char f;
-};
-
-void nocrash_on_locint_offset(void *addr, void* from, struct S s) {
-  int iAdd = (int) addr;
-  memcpy(((void *) &(s.f)), from, iAdd);
-}




More information about the cfe-commits mailing list