瀏覽代碼

* don't internalerror when asked to set the function result of a function
returning an empty record to "uninitialized"

git-svn-id: trunk@32778 -

Jonas Maebe 9 年之前
父節點
當前提交
35a170ed8e
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/llvm/hlcgllvm.pas

+ 3 - 0
compiler/llvm/hlcgllvm.pas

@@ -1260,6 +1260,9 @@ implementation
                 resloc.check_simple_location;
                 list.concat(taillvm.op_reg_size_undef(la_bitcast,resloc.location^.register,llvmgetcgparadef(resloc,true)));
               end;
+            { for empty record returns }
+            LOC_VOID:
+              ;
             else
               internalerror(2015042301);
           end;