[PATCH] D39356: [ThinLTO] Fix missing call graph edges for calls with bitcasts.
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 26 20:24:51 PDT 2017
mehdi_amini added inline comments.
================
Comment at: llvm/lib/Analysis/ModuleSummaryAnalysis.cpp:251
+ CalledFunction = dyn_cast<Function>(CalledValue);
+ }
// Check if this is an alias to a function. If so, get the
----------------
Isn't it enough to just replace ` auto *CalledValue = CS.getCalledValue();` with ` auto *CalledValue = CS.getCalledValue()->stripPointerCastsNoFollowAliases();` ?
https://reviews.llvm.org/D39356
More information about the llvm-commits
mailing list