Browse Source

* swapped decrefs and StripLabelFast as proposed by Gareth on the mailing list

git-svn-id: trunk@43445 -
florian 5 years ago
parent
commit
4b455600b8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      compiler/x86/aoptx86.pas

+ 3 - 3
compiler/x86/aoptx86.pas

@@ -3537,12 +3537,12 @@ unit aoptx86;
                                 asml.remove(hp1);
                                 hp1.free;
 
-                                { Remove label xxx (it will have a ref of zero due to the initial check }
-                                StripLabelFast(hp4);
-
                                 { Now we can safely decrement it }
                                 tasmlabel(symbol).decrefs;
 
+                                { Remove label xxx (it will have a ref of zero due to the initial check }
+                                StripLabelFast(hp4);
+
                                 { remove jmp }
                                 symbol := taicpu(hp2).oper[0]^.ref^.symbol;