Explorar o código

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

git-svn-id: trunk@30424 -
Jonas Maebe %!s(int64=10) %!d(string=hai) anos
pai
achega
ee7198aa57
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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;