[PATCH] D39356: [ThinLTO] Fix missing call graph edges for calls with bitcasts.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 10 13:50:26 PST 2017
efriedma added inline comments.
================
Comment at: llvm/trunk/lib/Analysis/ModuleSummaryAnalysis.cpp:284
+ assert(CalledValue && !isa<Constant>(CalledValue) &&
+ "Expected indirect call");
----------------
The following testcase triggers this assertion:
```
define void @caller() {
tail call void select (i1 icmp eq (i32* @a, i32* null), void ()* @f, void ()* @g)()
ret void
}
declare void @f()
declare void @g()
@a = extern_weak global i32
```
Repository:
rL LLVM
https://reviews.llvm.org/D39356
More information about the llvm-commits
mailing list