2002-02-01 13:04:58 +08:00
|
|
|
; Call graph construction crash: Not handling indirect calls right
|
|
|
|
;
|
2008-02-19 09:44:26 +08:00
|
|
|
; RUN: llvm-as < %s | opt -analyze -callgraph
|
2002-02-01 13:04:58 +08:00
|
|
|
;
|
|
|
|
|
2008-02-19 09:44:26 +08:00
|
|
|
%FunTy = type i32 (i32)
|
2002-02-01 13:04:58 +08:00
|
|
|
|
2008-02-19 09:44:26 +08:00
|
|
|
define void @invoke(%FunTy* %x) {
|
|
|
|
%foo = call i32 %x( i32 123 ) ; <i32> [#uses=0]
|
|
|
|
ret void
|
|
|
|
}
|
2002-02-01 13:04:58 +08:00
|
|
|
|
|
|
|
|