Skip to content

Commit 13725b4

Browse files
committed
[ASan] Fix two tests on FreeBSD: alloca.h is missing there.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@243800 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 8b09ca7 commit 13725b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asan/TestCases/alloca_loop_unpoisoning.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// This testcase checks that allocas and VLAs inside loop are correctly unpoisoned.
77

88
#include <assert.h>
9-
#include <alloca.h>
109
#include <stdint.h>
10+
#include <stdlib.h>
1111
#include "sanitizer/asan_interface.h"
1212

1313
void *top, *bot;

test/asan/TestCases/alloca_vla_interact.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// This testcase checks correct interaction between VLAs and allocas.
88

99
#include <assert.h>
10-
#include <alloca.h>
1110
#include <stdint.h>
11+
#include <stdlib.h>
1212
#include "sanitizer/asan_interface.h"
1313

1414
#define RZ 32

0 commit comments

Comments
 (0)