浏览代码

* fixed llvm compiler compilation with -O3/-Oodfa

git-svn-id: branches/debug_eh@40590 -
Jonas Maebe 6 年之前
父节点
当前提交
1a0ffbc82b
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      compiler/expunix.pas
  2. 1 0
      compiler/llvm/hlcgllvm.pas

+ 1 - 0
compiler/expunix.pas

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

+ 1 - 0
compiler/llvm/hlcgllvm.pas

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