diff options
| author | Duncan Sands <baldrick@free.fr> | 2012-09-26 17:16:01 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2012-09-26 17:16:01 +0000 |
| commit | 8598a0ec807854a41119b38477402cc1172d2bc2 (patch) | |
| tree | cb93e034c531036dd6966994d0c9dc56958a111b /llvm/test/Analysis/CallGraph | |
| parent | 17df40d484c650245b67a7e3fa2ae91354f5ea26 (diff) | |
| download | bcm5719-llvm-8598a0ec807854a41119b38477402cc1172d2bc2.tar.gz bcm5719-llvm-8598a0ec807854a41119b38477402cc1172d2bc2.zip | |
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
Diffstat (limited to 'llvm/test/Analysis/CallGraph')
| -rw-r--r-- | llvm/test/Analysis/CallGraph/do-nothing-intrinsic.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Analysis/CallGraph/do-nothing-intrinsic.ll b/llvm/test/Analysis/CallGraph/do-nothing-intrinsic.ll new file mode 100644 index 00000000000..f28ad10f57c --- /dev/null +++ b/llvm/test/Analysis/CallGraph/do-nothing-intrinsic.ll @@ -0,0 +1,13 @@ +; 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 |

