diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-02-18 01:02:14 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-02-18 01:02:14 +0000 |
| commit | 61d484ea8b6cf17db148efb9c3000aa596a81c99 (patch) | |
| tree | 09508bfdc15ed94fc6d7f972bb7d3698f3fd1a74 /clang | |
| parent | 1e3a02f09086e1ec6e76d3481c5335935cd121a9 (diff) | |
| download | bcm5719-llvm-61d484ea8b6cf17db148efb9c3000aa596a81c99.tar.gz bcm5719-llvm-61d484ea8b6cf17db148efb9c3000aa596a81c99.zip | |
Fix test: config.h is not guaranteed to exist at the location in
question. Use __builtin_alloca instead, which is guaranteed to mean the right
thing without any includes.
llvm-svn: 64868
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/Analysis/stack-addr-ps.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/test/Analysis/stack-addr-ps.c b/clang/test/Analysis/stack-addr-ps.c index 3516fee0a4e..3ee2063e246 100644 --- a/clang/test/Analysis/stack-addr-ps.c +++ b/clang/test/Analysis/stack-addr-ps.c @@ -3,10 +3,6 @@ // RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s #include <stdlib.h> -#include "../../../../include/llvm/Config/config.h" -#ifdef HAVE_ALLOCA_H -# include <alloca.h> -#endif int* f1() { int x = 0; @@ -42,7 +38,7 @@ void* compound_literal(int x, int y) { } void* alloca_test() { - void* p = alloca(10); + void* p = __builtin_alloca(10); return p; // expected-warning{{Address of stack memory}} } |

