[all-commits] [llvm/llvm-project] 76ebaf: [LTO] Fix lto_module_create_in_codegen_context ret...

Steven Wu via All-commits all-commits at lists.llvm.org
Wed Oct 26 15:15:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76ebaf263b20619b3416fbaa715fea25735bfe30
      https://github.com/llvm/llvm-project/commit/76ebaf263b20619b3416fbaa715fea25735bfe30
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M llvm/tools/lto/lto.cpp

  Log Message:
  -----------
  [LTO] Fix lto_module_create_in_codegen_context return value on error

According to the documentation, lto_module_create_in_codegen_context
should return NULL on error but currently it is accidentally return
error_code. Since this is a bug fix and it seems to be a one-off bug
that only affects this API, there is no need to bump API version.

rdar://101505192

Reviewed By: pete

Differential Revision: https://reviews.llvm.org/D136769




More information about the All-commits mailing list