summaryrefslogtreecommitdiff
path: root/src/asm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm.cc')
-rw-r--r--src/asm.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/asm.cc b/src/asm.cc
index 7e5c7fa7..bad63c98 100644
--- a/src/asm.cc
+++ b/src/asm.cc
@@ -1129,9 +1129,7 @@ std::ostream &AsmCodeGen::STATE_GOTOS()
GOTO_HEADER( st );
if ( st->nfaTargs != 0 && st->nfaTargs->length() > 0 ) {
- RedNfaTargs::Iter s = *st->nfaTargs;
- s.increment();
- for ( ; s.lte(); s++ ) {
+ for ( RedNfaTargs::Iter s = *st->nfaTargs; s.lte(); s++ ) {
out <<
" movq " << NFA_STACK() << ", %rax\n"
" movq " << NFA_TOP() << ", %rcx\n"
@@ -1142,10 +1140,6 @@ std::ostream &AsmCodeGen::STATE_GOTOS()
" addq $1, %rcx\n"
" movq %rcx, " << NFA_TOP() << "\n";
}
-
- RedStateAp *targ = st->nfaTargs->data[0].state;
- out <<
- " jmp " << LABEL( "en", targ->id ) << "\n";
}
/* Load *p. */