1 ; RUN: opt < %s -passes=asan -S | FileCheck %s
3 ; Test that for call instructions, the byref arguments are not
4 ; instrumented, as no copy is implied.
6 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
7 target triple = "x86_64-unknown-linux-gnu"
9 %struct.bar = type { %struct.foo }
10 %struct.foo = type { ptr, ptr, ptr }
13 ; CHECK-NEXT: tail call void @func1(
14 ; CHECK-NEXT: ret void
15 define dso_local void @func2(ptr %foo) sanitize_address {
16 tail call void @func1(ptr byref(%struct.foo) align 8 %foo) #2
20 declare dso_local void @func1(ptr byref(%struct.foo) align 8)