Просмотр исходного кода

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

git-svn-id: trunk@30424 -
Jonas Maebe 10 лет назад
Родитель
Сommit
ee7198aa57
1 измененных файлов с 1 добавлено и 2 удалено
  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;