Skip to content

Commit

Permalink
Avoid a set copy
Browse files Browse the repository at this point in the history
Summary: This is a behavior-preserving change.

Reviewed By: agampe

Differential Revision: D49329734

fbshipit-source-id: 85ac020cbd3478c29df85689e03ae3b614486b7f
  • Loading branch information
Nikolai Tillmann authored and facebook-github-bot committed Sep 16, 2023
1 parent 2689103 commit a9eca4f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libredex/CallGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ Graph multiple_callee_graph(const mog::Graph& method_override_graph,

SingleCalleeStrategy::SingleCalleeStrategy(
const mog::Graph& method_override_graph, const Scope& scope)
: m_scope(scope) {
auto non_virtual_vec =
mog::get_non_true_virtuals(method_override_graph, scope);
m_non_virtual.insert(non_virtual_vec.begin(), non_virtual_vec.end());
}
: m_scope(scope),
m_non_virtual(mog::get_non_true_virtuals(method_override_graph, scope)) {}

CallSites SingleCalleeStrategy::get_callsites(const DexMethod* method) const {
CallSites callsites;
Expand Down

0 comments on commit a9eca4f

Please sign in to comment.