]> granicus.if.org Git - llvm/commitdiff
[PlaceSafepoints] Don't call undef in test case; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 25 Jun 2016 01:40:54 +0000 (01:40 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 25 Jun 2016 01:40:54 +0000 (01:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273764 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/PlaceSafepoints/no-statepoints.ll

index 698f295f5f9c7653f840ef16de0441c3f532708a..ad2442369b8845d5e197801375c334f30d16ea19 100644 (file)
@@ -1,5 +1,7 @@
 ; RUN: opt -S -place-safepoints < %s | FileCheck %s
 
+declare void @callee()
+
 define void @test() gc "statepoint-example" {
 ; CHECK-LABEL: test(
 entry:
@@ -9,7 +11,7 @@ entry:
 
 other:
 ; CHECK: other:
-  call void undef() "gc-leaf-function"
+  call void @callee() "gc-leaf-function"
 ; CHECK: call void @do_safepoint()
   br label %other
 }