Selaa lähdekoodia

* 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 vuotta sitten
vanhempi
commit
35a170ed8e
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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;