Skip to content

Commit

Permalink
Fix increment
Browse files Browse the repository at this point in the history
Summary: Don't increment the pointer, increment the referenced location.

Reviewed By: NTillmann

Differential Revision: D47879572

fbshipit-source-id: 7a0913f6a3d7de7c9b2fb038494d33806c0c39e7
  • Loading branch information
agampe authored and facebook-github-bot committed Jul 29, 2023
1 parent 169e475 commit 7662a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opt/init-classes/InitClassLoweringPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,14 @@ void make_public(const std::vector<DexField*>& fields,
auto cls = type_class(type);
if (cls && !cls->is_external() && !is_public(cls)) {
set_public(cls);
types_made_public++;
(*types_made_public)++;
visit(cls->get_super_class());
}
};
for (auto& f : fields) {
if (!is_public(f)) {
set_public(f);
fields_made_public++;
(*fields_made_public)++;
}
visit(f->get_class());
visit(f->get_type());
Expand Down

0 comments on commit 7662a9a

Please sign in to comment.