Parcourir la source

* fixed memory leak in case one tai operand is replaced by another

git-svn-id: trunk@30424 -
Jonas Maebe il y a 10 ans
Parent
commit
ee7198aa57
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      compiler/llvm/aasmllvm.pas

+ 1 - 2
compiler/llvm/aasmllvm.pas

@@ -299,8 +299,7 @@ uses
         allocate_oper(opidx+1);
         with oper[opidx]^ do
          begin
-           if typ<>top_tai then
-             clearop(opidx);
+           clearop(opidx);
            ai:=_ai;
            typ:=top_tai;
          end;