소스 검색

* 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;