瀏覽代碼

- removed the no longer used generation of uninitialised results for
pure assembler routines

git-svn-id: trunk@31634 -

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

+ 0 - 5
compiler/llvm/hlcgllvm.pas

@@ -1141,11 +1141,6 @@ implementation
             LOC_FPUREGISTER,
             LOC_FPUREGISTER,
             LOC_MMREGISTER:
             LOC_MMREGISTER:
               begin
               begin
-                { inline assembler routines contain a ret at the end and never
-                  get here, but we do need a return at the end -> return an
-                  undefined value in this case }
-                if po_assembler in current_procinfo.procdef.procoptions then
-                  gen_load_uninitialized_function_result(list,current_procinfo.procdef,retpara.def,retpara);
                 { sign/zeroextension of function results is handled implicitly
                 { sign/zeroextension of function results is handled implicitly
                   via the signext/zeroext modifiers of the result, rather than
                   via the signext/zeroext modifiers of the result, rather than
                   in the code generator -> remove any explicit extensions here }
                   in the code generator -> remove any explicit extensions here }