diff --git a/src/compile.cpp b/src/compile.cpp index 39f8f4c357..5fc3fbea9c 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -4333,9 +4333,7 @@ compile(MyThread* t, Frame* initialFrame, unsigned initialIp, Compiler::VoidType, 2, c->register_(t->arch->thread()), target); - if (ip == codeLength(t, code)) { - c->nullaryOp(lir::Trap); - } + c->nullaryOp(lir::Trap); } goto next; case bipush: