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