forked from OSchip/llvm-project
16 lines
254 B
LLVM
16 lines
254 B
LLVM
|
; Call graph construction crash: Not handling indirect calls right
|
||
|
;
|
||
|
; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -callgraph
|
||
|
;
|
||
|
|
||
|
%FunTy = type int(int)
|
||
|
|
||
|
implementation
|
||
|
|
||
|
void "invoke"(%FunTy *%x)
|
||
|
begin
|
||
|
%foo = call %FunTy* %x(int 123)
|
||
|
ret void
|
||
|
end
|
||
|
|