summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LTO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/LTO.cpp')
-rw-r--r--lld/ELF/LTO.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp
index 3e07463113e..ceea11b7e2f 100644
--- a/lld/ELF/LTO.cpp
+++ b/lld/ELF/LTO.cpp
@@ -266,7 +266,8 @@ std::vector<InputFile *> BitcodeCompiler::compile() {
if (F->AddedToLink || !isBitcode(F->MB))
continue;
- std::string Path = getThinLTOOutputFile(F->getName());
+ std::string Path = updateSuffixInPath(getThinLTOOutputFile(F->getName()));
+
std::unique_ptr<raw_fd_ostream> OS = openFile(Path + ".thinlto.bc");
if (!OS)
continue;
OpenPOWER on IntegriCloud