mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 15:06:10 +00:00

We should not be using APIs here that try to fetch the attribute from both the call attributes and the function attributes. Otherwise we'll try to upgrade a non-existent sret attribute on the call using the attribute on the function.
12 lines
269 B
LLVM
12 lines
269 B
LLVM
; RUN: llvm-as -opaque-pointers < %s | llvm-dis -opaque-pointers | FileCheck %s
|
|
|
|
; CHECK: declare void @decl(ptr sret(i64))
|
|
; CHECK: call void @decl(ptr %arg)
|
|
|
|
declare void @decl(i64* sret(i64))
|
|
|
|
define void @test(i64* %arg) {
|
|
call void @decl(i64* %arg)
|
|
ret void
|
|
}
|