[all-commits] [llvm/llvm-project] b114e1: [ELF] Fix --thinlto-index-only regression after D7...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jun 9 23:10:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b114e134bdc89fc43aef2ab2d7ff19aca89e5b36
      https://github.com/llvm/llvm-project/commit/b114e134bdc89fc43aef2ab2d7ff19aca89e5b36
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M lld/ELF/LTO.cpp
    M lld/test/ELF/lto/thinlto-index-only.ll

  Log Message:
  -----------
  [ELF] Fix --thinlto-index-only regression after D79300

After D79300, we don't rewrite InputFile::mb to an empty buffer.
In thinLTOCreateEmptyIndexFiles(), we should check LazyObjFile::fetched
as well as checking whether mb is a bitcode, otherwise we would overwrite (path + .thinlto.bc) with an empty index.




More information about the All-commits mailing list