[all-commits] [llvm/llvm-project] f53de2: [FunctionImport] Change IRMover report_fatal_error...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Feb 23 21:45:28 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f53de29862193b761f3ef8ec0627d1e70d2fe674
      https://github.com/llvm/llvm-project/commit/f53de29862193b761f3ef8ec0627d1e70d2fe674
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionImport.cpp
    A llvm/test/Transforms/FunctionImport/module-flags.ll

  Log Message:
  -----------
  [FunctionImport] Change IRMover report_fatal_error to a proper error

Conflicting module flags leads to a proper error for regular LTO but a crash
(report_fatal_error) for ThinLTO. Switch to createStringError to fix the crash
and match regular LTO.




More information about the All-commits mailing list