Skip to content

Commit

Permalink
Skip ctor w/ no code in analyze_clinits_and_ctors
Browse files Browse the repository at this point in the history
Reviewed By: agampe

Differential Revision: D54689638

fbshipit-source-id: 7c6218d4cf59628e55ac1852f5393a67db79bce1
  • Loading branch information
Wei Zhang (Devinfra) authored and facebook-github-bot committed Mar 8, 2024
1 parent cb94597 commit 973c6e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/type-analysis/WholeProgramState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void WholeProgramState::analyze_clinits_and_ctors(

const auto& ctors = cls->get_ctors();
for (auto* ctor : ctors) {
if (!is_reachable(gta, ctor)) {
if (!is_reachable(gta, ctor) || !ctor->get_code()) {
continue;
}
IRCode* code = ctor->get_code();
Expand Down

0 comments on commit 973c6e5

Please sign in to comment.