summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-07-31 23:57:06 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-07-31 23:57:06 +0000
commit25ac9311d08a542847e8e92f2754e38322e882ab (patch)
treef33841b1c3268e89912136c5b63106bbddeee5bc
parentb4d0d6a345d76c9d03fe4c595dd93bb89e1065c3 (diff)
downloadbcm5719-llvm-25ac9311d08a542847e8e92f2754e38322e882ab.tar.gz
bcm5719-llvm-25ac9311d08a542847e8e92f2754e38322e882ab.zip
[ASan] Fix two tests on FreeBSD: alloca.h is missing there.
llvm-svn: 243800
-rw-r--r--compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/alloca_vla_interact.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cc b/compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cc
index 3621a09aa72..706b5bd1be1 100644
--- a/compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cc
+++ b/compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cc
@@ -6,8 +6,8 @@
// This testcase checks that allocas and VLAs inside loop are correctly unpoisoned.
#include <assert.h>
-#include <alloca.h>
#include <stdint.h>
+#include <stdlib.h>
#include "sanitizer/asan_interface.h"
void *top, *bot;
diff --git a/compiler-rt/test/asan/TestCases/alloca_vla_interact.cc b/compiler-rt/test/asan/TestCases/alloca_vla_interact.cc
index 531cc243055..4b2b27cefa7 100644
--- a/compiler-rt/test/asan/TestCases/alloca_vla_interact.cc
+++ b/compiler-rt/test/asan/TestCases/alloca_vla_interact.cc
@@ -7,8 +7,8 @@
// This testcase checks correct interaction between VLAs and allocas.
#include <assert.h>
-#include <alloca.h>
#include <stdint.h>
+#include <stdlib.h>
#include "sanitizer/asan_interface.h"
#define RZ 32
OpenPOWER on IntegriCloud