浏览代码

* make the resultdef of left and right equal when comparing a procvar
with nil (for llvm)

git-svn-id: trunk@30954 -

Jonas Maebe 10 年之前
父节点
当前提交
e9800ad3f9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/nadd.pas

+ 4 - 0
compiler/nadd.pas

@@ -1982,6 +1982,10 @@ implementation
                           ctypeconvnode.create_internal(left,methodpointertype));
                 typecheckpass(left);
               end;
+            if lt=niln then
+              inserttypeconv_explicit(left,right.resultdef)
+            else
+              inserttypeconv_explicit(right,left.resultdef)
           end
 
        { support dynamicarray=nil,dynamicarray<>nil }