blob: bf3cf9cecb60d08440e44b5947486f18aa4c0ab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
; RUN: opt < %s -asan -asan-module -asan-experimental-poisoning -S | FileCheck %s
; RUN: opt < %s -asan -asan-module -S | FileCheck --check-prefix=CHECK-OFF %s
target datalayout = "e-i64:64-f80:128-s:64-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @Foo(i8*)
define void @Bar() uwtable sanitize_address {
entry:
%x = alloca [20 x i8], align 16
%arraydecay = getelementptr inbounds [20 x i8], [20 x i8]* %x, i64 0, i64 0
call void @Foo(i8* %arraydecay)
ret void
}
; CHECK: declare void @__asan_set_shadow_00(i64, i64)
; CHECK: declare void @__asan_set_shadow_f1(i64, i64)
; CHECK: declare void @__asan_set_shadow_f2(i64, i64)
; CHECK: declare void @__asan_set_shadow_f3(i64, i64)
; CHECK: declare void @__asan_set_shadow_f5(i64, i64)
; CHECK: declare void @__asan_set_shadow_f8(i64, i64)
; CHECK-OFF-NOT: declare void @__asan_set_shadow_
|