diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp index 168bfc9c68b4..b22f0717fb51 100644 --- a/lld/ELF/LTO.cpp +++ b/lld/ELF/LTO.cpp @@ -201,9 +201,6 @@ void BitcodeCompiler::add(BitcodeFile &F) { static void createEmptyIndex(StringRef ModulePath) { std::string Path = replaceThinLTOSuffix(getThinLTOOutputFile(ModulePath)); - if (Path.empty()) - return; - std::unique_ptr OS = openFile(Path + ".thinlto.bc"); if (!OS) return;