Remove an unnecessary cast.
[oota-llvm.git] / test / Other / 2002-01-31-CallGraph.ll
index 279369de6651f121a4a62d6bb7a09eb1b1da0952..e09461dc2acb0767a527ce3b0b24c1237523009f 100644 (file)
@@ -3,13 +3,11 @@
 ; RUN: llvm-as < %s | opt -analyze -callgraph
 ;
 
-%FunTy = type int(int)
+        %FunTy = type i32 (i32)
 
-implementation
+define void @invoke(%FunTy* %x) {
+        %foo = call i32 %x( i32 123 )           ; <i32> [#uses=0]
+        ret void
+}
 
-void "invoke"(%FunTy *%x)
-begin
-       %foo = call %FunTy* %x(int 123)
-       ret void
-end