Skip to content

Commit

Permalink
Don't change to interface ref
Browse files Browse the repository at this point in the history
Reviewed By: thezhangwei

Differential Revision: D52631931

fbshipit-source-id: f55d4b505adfc9652b0df1c4be2a5b28c549232a
  • Loading branch information
wsanville authored and facebook-github-bot committed Jan 10, 2024
1 parent c6528f4 commit 3267f9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opt/resolve-refs/ResolveRefsPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@ RefStats ResolveRefsPass::refine_virtual_callsites(const XStoreRefs& xstores,
stats.num_bailed_on_min_sdk_mismatch++;
continue;
}
if (!opcode::is_invoke_interface(opcode) && is_interface(def_cls)) {
TRACE(RESO, 4, "Bailed on incorrect opcode %s", SHOW(def_meth));
continue;
}
TRACE(RESO, 3, "Resolving %s\n\t=>%s", SHOW(mref), SHOW(def_meth));
insn->set_method(def_meth);
if (opcode::is_invoke_interface(opcode) && !is_interface(def_cls)) {
Expand Down

0 comments on commit 3267f9c

Please sign in to comment.