浏览代码

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

git-svn-id: trunk@30424 -
Jonas Maebe 10 年之前
父节点
当前提交
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;