[all-commits] [llvm/llvm-project] 08ff4d: [LTO] onfig::addSaveTemps: clear ResolutionFile up...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Mar 2 17:49:10 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 08ff4dc9ad962d0e2db8550deed31d0377e8d2e1
      https://github.com/llvm/llvm-project/commit/08ff4dc9ad962d0e2db8550deed31d0377e8d2e1
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-03-02 (Mon, 02 Mar 2020)

  Changed paths:
    A lld/test/ELF/lto/resolution-err.ll
    M llvm/lib/LTO/LTOBackend.cpp

  Log Message:
  -----------
  [LTO] onfig::addSaveTemps: clear ResolutionFile upon an error

Otherwise ld.lld -save-temps will crash when writing to ResolutionFile.

llvm-lto2 -save-temps does not crash because it exits immediately.

Reviewed By: evgeny777

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




More information about the All-commits mailing list