[Attributor][FIX] Add missing function declaration in test case

llvm-svn: 374696
This commit is contained in:
Johannes Doerfert 2019-10-13 02:42:09 +00:00
parent ea1e81f54b
commit 9daf51910b
1 changed files with 2 additions and 0 deletions

View File

@ -533,8 +533,10 @@ define i32* @g1() {
ret i32* %c ret i32* %c
} }
declare void @use_i32_ptr(i32*) readnone nounwind
; ATTRIBUTOR: define internal void @called_by_weak(i32* nocapture nonnull readnone %a) ; ATTRIBUTOR: define internal void @called_by_weak(i32* nocapture nonnull readnone %a)
define internal void @called_by_weak(i32* %a) { define internal void @called_by_weak(i32* %a) {
call void @use_i32_ptr(i32* %a)
ret void ret void
} }