Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions llvm/include/llvm/IR/ModuleSummaryIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -1544,14 +1544,7 @@ class ModuleSummaryIndex {
continue; // skip over non-root nodes
Edges.push_back(std::make_pair(P.first, CalleeInfo{}));
}
if (Edges.empty()) {
// Failed to find root - return an empty node
return FunctionSummary::makeDummyFunctionSummary(
SmallVector<FunctionSummary::EdgeTy, 0>());
}
auto CallGraphRoot =
FunctionSummary::makeDummyFunctionSummary(std::move(Edges));
return CallGraphRoot;
return FunctionSummary::makeDummyFunctionSummary(std::move(Edges));
}

bool withGlobalValueDeadStripping() const {
Expand Down