Browse Source

+ also apply optimize_ref() on references of inline asm instructions

git-svn-id: trunk@37512 -
nickysn 7 years ago
parent
commit
0d1f7910d7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/x86/rax86.pas

+ 2 - 0
compiler/x86/rax86.pas

@@ -1248,6 +1248,8 @@ begin
                         localscale,localgetoffset,localforceref);
        OPR_REFERENCE:
          begin
+           if (opcode<>A_XLAT) and not is_x86_string_op(opcode) then
+             optimize_ref(operands[i].opr.ref,true);
            ai.loadref(i-1,operands[i].opr.ref);
            if operands[i].size<>OS_NO then
              begin