[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.
Loading
Please register or sign in to comment