2
0
Эх сурвалжийг харах

* fix tc_bool_2_int simplification in case pass typecheck runs again, e.g.
after getting a copy of the node during CSE (fixes taddset4 compilation
with LLVM after r44712)

git-svn-id: trunk@45087 -

Jonas Maebe 5 жил өмнө
parent
commit
f5e89ded35
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      compiler/ncnv.pas

+ 1 - 0
compiler/ncnv.pas

@@ -3220,6 +3220,7 @@ implementation
                     end;
                   if (convtype=tc_int_2_int) and (left.nodetype=typeconvn) and (ttypeconvnode(left).convtype=tc_bool_2_int) then
                     begin
+                      ttypeconvnode(left).totypedef:=resultdef;
                       ttypeconvnode(left).resultdef:=resultdef;
                       result:=left;
                       left:=nil;