Skip to content

Commit

Permalink
Relax overspecific assertions
Browse files Browse the repository at this point in the history
Reviewed By: beicy

Differential Revision: D50428012

fbshipit-source-id: 2383078a3a17ffb1bfd13c6f73d2050e1377b85d
  • Loading branch information
Nikolai Tillmann authored and facebook-github-bot committed Oct 19, 2023
1 parent 28d31d6 commit f271efe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class WholeProgramStateAccessor {
}
for (const DexMethod* callee : callees) {
if (!callee->get_code()) {
always_assert(is_native(callee));
always_assert(is_abstract(callee) || is_native(callee));
return ConstantValue::top();
}
}
Expand Down
2 changes: 1 addition & 1 deletion service/type-analysis/WholeProgramState.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class WholeProgramState {
DexTypeDomain ret = DexTypeDomain::bottom();
for (const DexMethod* callee : callees) {
if (!callee->get_code()) {
always_assert(is_native(callee));
always_assert(is_abstract(callee) || is_native(callee));
return DexTypeDomain::top();
}
auto val = m_method_partition.get(callee);
Expand Down

0 comments on commit f271efe

Please sign in to comment.