[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)
llvm-svn: 374696

llvm/test/Transforms/FunctionAttrs/nonnull.ll

index 7e7b1ad..f893e1d 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
 }