blob: 52d88688987d38dce51b34a5d00404b3b234c795 [file] [log] [blame]
; Call graph construction crash: Not handling indirect calls right
;
; RUN: opt < %s -analyze -print-callgraph -enable-new-pm=0 > /dev/null 2>&1
; RUN: opt < %s -passes=print-callgraph > /dev/null 2>&1
;
%FunTy = type i32 (i32)
define void @invoke(%FunTy* %x) {
%foo = call i32 %x( i32 123 ) ; <i32> [#uses=0]
ret void
}