Skip to content

Commit

Permalink
Allowing for dangling references...
Browse files Browse the repository at this point in the history
Reviewed By: amnn

Differential Revision: D28047606

fbshipit-source-id: df1257730b6458f475e6d0684ad0549eb42b3aef
  • Loading branch information
NTillmann authored and facebook-github-bot committed Apr 29, 2021
1 parent b0ed209 commit 083ab4e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ void FixpointIterator::analyze_node(call_graph::NodeId const& node,
if (code == nullptr) {
return;
}
if (!code->cfg_built()) {
// This can happen when there are dangling references to methods that can
// never run.
return;
}
auto& cfg = code->cfg();
auto intra_cp = get_intraprocedural_analysis(method);
const auto outgoing_edges =
Expand Down

0 comments on commit 083ab4e

Please sign in to comment.