forked from OSchip/llvm-project
[FunctionImport] Prefer isa<> to dyn_cast<> as the value is not used.
This change makes GCC7 happy again. llvm-svn: 309305
This commit is contained in:
parent
60855214c2
commit
82c7d3768d
|
@ -132,7 +132,7 @@ selectCallee(const ModuleSummaryIndex &Index,
|
|||
if (GlobalValue::isInterposableLinkage(GVSummary->linkage()))
|
||||
// There is no point in importing these, we can't inline them
|
||||
return false;
|
||||
if (auto *AS = dyn_cast<AliasSummary>(GVSummary))
|
||||
if (isa<AliasSummary>(GVSummary))
|
||||
// Aliases can't point to "available_externally".
|
||||
// FIXME: we should import alias as available_externally *function*,
|
||||
// the destination module does not need to know it is an alias.
|
||||
|
|
Loading…
Reference in New Issue