[PATCH] D39356: [ThinLTO] Fix missing call graph edges for calls with bitcasts.

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 18:26:34 PST 2017


dexonsmith added inline comments.


================
Comment at: llvm/lib/Analysis/ModuleSummaryAnalysis.cpp:283
           continue;
-        // Skip direct calls.
-        if (!CS.getCalledValue() || isa<Constant>(CS.getCalledValue()))
-          continue;
+        assert(CalledValue && !isa<Constant>(CalledValue) &&
+               "Expected indirect call");
----------------
tejohnson wrote:
> I'm a little worried that we may have a case with CalledValue==null (presumably it wasn't an accident that we were checking for a null CalledValue before). Anyone know if that is valid?
In the absence of a failing testcase, one way to find such a case is to commit the assertion and wait for it to fire.


https://reviews.llvm.org/D39356





More information about the llvm-commits mailing list