diff options
author | Fangrui Song <maskray@google.com> | 2020-06-09 23:08:04 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-06-09 23:10:30 -0700 |
commit | b114e134bdc89fc43aef2ab2d7ff19aca89e5b36 (patch) | |
tree | d03f6b217fb037d8edf25a6a19fa91721217c9cd /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 4be1c116ad8602d96d6d212a661425fbf05eb58f (diff) | |
download | llvm-b114e134bdc89fc43aef2ab2d7ff19aca89e5b36.zip llvm-b114e134bdc89fc43aef2ab2d7ff19aca89e5b36.tar.gz llvm-b114e134bdc89fc43aef2ab2d7ff19aca89e5b36.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions