Skip to content

Commit c4206e2

Browse files
committed
jsr and ret
1 parent 8e51e1b commit c4206e2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,10 @@ codet java_bytecode_convert_methodt::convert_instructions(
538538
if(i_it->statement!="goto" &&
539539
i_it->statement!="return" &&
540540
!(i_it->statement==patternt("?return")) &&
541-
i_it->statement!="athrow")
541+
i_it->statement!="athrow" &&
542+
i_it->statement!="jsr" &&
543+
i_it->statement!="jsr_w" &&
544+
i_it->statement!="ret")
542545
{
543546
instructionst::const_iterator next=i_it;
544547
if(++next!=instructions.end())
@@ -549,7 +552,9 @@ codet java_bytecode_convert_methodt::convert_instructions(
549552
i_it->statement==patternt("if_?cmp??") ||
550553
i_it->statement==patternt("if??") ||
551554
i_it->statement=="ifnonnull" ||
552-
i_it->statement=="ifnull")
555+
i_it->statement=="ifnull" ||
556+
i_it->statement=="jsr" ||
557+
i_it->statement=="jsr_w")
553558
{
554559
assert(!i_it->args.empty());
555560

0 commit comments

Comments
 (0)