forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164707 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
696e06e
commit 44401b7
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |