RPA Toolkit
work on RJS. Fixed inlined rules compilation(ref shadowing).
authorMartin Stoilov <martin@rpasearch.com>
Wed, 27 Apr 2011 03:33:15 +0000 (20:33 -0700)
committerMartin Stoilov <martin@rpasearch.com>
Wed, 27 Apr 2011 03:33:15 +0000 (20:33 -0700)
rpa2/rpacompiler.c

index 2172a3f..47a13ba 100644 (file)
@@ -466,7 +466,7 @@ rint rpa_compiler_inlinerule_end(rpa_compiler_t *co)
        rvm_codegen_addins(co->cg, rvm_asm(RVM_POP, R_OTP, XX, XX, 0));
        rvm_codegen_addins(co->cg, rvm_asm(RVM_POP, R1, XX, XX, 0));
        rvm_codegen_addins(co->cg, rvm_asm(RVM_SUBS, R0, R_TOP, R_OTP, 0));
-       rvm_codegen_addins(co->cg, rvm_asm(RVM_BEQ, DA, XX, XX, 4));
+       rvm_codegen_addins(co->cg, rvm_asm(RVM_BEQ, DA, XX, XX, 3));
        rvm_codegen_index_addrelocins(co->cg, RVM_RELOC_BLOB, exp.dataidx, rvm_asm(RPA_EMITEND, DA, R_OTP, R0, 0));
        rvm_codegen_addins(co->cg, rvm_asm(RVM_BX, LR, XX, XX, 0));
        rvm_codegen_addins(co->cg, rvm_asm(RVM_MOV, R_REC, R1, XX, 0));