Browse Source

* fixed llvm compiler compilation with -O3/-Oodfa

git-svn-id: branches/debug_eh@40590 -
Jonas Maebe 6 năm trước cách đây
mục cha
commit
1a0ffbc82b

+ 1 - 0
compiler/expunix.pas

@@ -139,6 +139,7 @@ begin
       anyhasalias:=false;
       anyhasalias:=false;
       { if the procedure has the exported name as one of its aliases, we don't
       { if the procedure has the exported name as one of its aliases, we don't
         need a separate stub }
         need a separate stub }
+      pd:=nil;
       for i:=0 to tprocsym(hp.sym).procdeflist.count-1 do
       for i:=0 to tprocsym(hp.sym).procdeflist.count-1 do
         begin
         begin
           pd:=tprocdef(tprocsym(hp.sym).procdeflist[i]);
           pd:=tprocdef(tprocsym(hp.sym).procdeflist[i]);

+ 1 - 0
compiler/llvm/hlcgllvm.pas

@@ -217,6 +217,7 @@ implementation
         (orgsize<>size) and
         (orgsize<>size) and
         assigned(cgpara.location^.next);
         assigned(cgpara.location^.next);
       paralocidx:=0;
       paralocidx:=0;
+      fielddef:=nil;
       while assigned(location) do
       while assigned(location) do
         begin
         begin
           if userecord then
           if userecord then