1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/Analysis/CallGraph/do-nothing-intrinsic.ll
Duncan Sands c10b8fc428 Now that invoke of an intrinsic is possible (for the llvm.do.nothing intrinsic)
teach the callgraph logic to not create callgraph edges to intrinsics for invoke
instructions; it already skips this for call instructions.  Fixes PR13903.

llvm-svn: 164707
2012-09-26 17:16:01 +00:00

14 lines
268 B
LLVM

; RUN: opt < %s -basiccg
; PR13903
define void @main() {
invoke void @llvm.donothing()
to label %ret unwind label %unw
unw:
%tmp = landingpad i8 personality i8 0 cleanup
br label %ret
ret:
ret void
}
declare void @llvm.donothing() nounwind readnone