21 lines · plain
1; RUN: opt < %s -passes=asan -S | FileCheck %s2 3; Test that for call instructions, the byref arguments are not4; 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: @func213; CHECK-NEXT: tail call void @func1(14; CHECK-NEXT: ret void15define dso_local void @func2(ptr %foo) sanitize_address {16 tail call void @func1(ptr byref(%struct.foo) align 8 %foo) #217 ret void18}19 20declare dso_local void @func1(ptr byref(%struct.foo) align 8)21