]> granicus.if.org Git - llvm/commitdiff
[Attributor][FIX] Add missing function declaration in test case
authorJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 02:42:09 +0000 (02:42 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 02:42:09 +0000 (02:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374696 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/FunctionAttrs/nonnull.ll

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