r248458 - clang/test/Analysis/malloc-overflow2.c: Appease 32-bit targets.

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 19:49:01 PDT 2015


Author: chapuni
Date: Wed Sep 23 21:49:00 2015
New Revision: 248458

URL: http://llvm.org/viewvc/llvm-project?rev=248458&view=rev
Log:
clang/test/Analysis/malloc-overflow2.c: Appease 32-bit targets.

size_t is not unsigned long for targeting i686 (and Windows x64).

Modified:
    cfe/trunk/test/Analysis/malloc-overflow2.c

Modified: cfe/trunk/test/Analysis/malloc-overflow2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/malloc-overflow2.c?rev=248458&r1=248457&r2=248458&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/malloc-overflow2.c (original)
+++ cfe/trunk/test/Analysis/malloc-overflow2.c Wed Sep 23 21:49:00 2015
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.MallocOverflow,unix -verify %s
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -analyze -analyzer-checker=alpha.security.MallocOverflow,unix -verify %s
 
 typedef __typeof__(sizeof(int)) size_t;
 extern void *malloc(size_t);




More information about the cfe-commits mailing list