[llvm] d23b63c - Fix lto AddStream callsite in gold plugin.

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 15:47:23 PST 2022


Author: Zequan Wu
Date: 2022-11-22T15:46:59-08:00
New Revision: d23b63ceccfe526c3a9b17d35032b3666e6816a1

URL: https://github.com/llvm/llvm-project/commit/d23b63ceccfe526c3a9b17d35032b3666e6816a1
DIFF: https://github.com/llvm/llvm-project/commit/d23b63ceccfe526c3a9b17d35032b3666e6816a1.diff

LOG: Fix lto AddStream callsite in gold plugin.

Added: 
    

Modified: 
    llvm/tools/gold/gold-plugin.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index f7eb7fae39b5..c103fc43a3f6 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -1103,7 +1103,7 @@ static std::vector<std::pair<SmallString<128>, bool>> runLTO() {
 
   auto AddBuffer = [&](size_t Task, const Twine &moduleName,
                        std::unique_ptr<MemoryBuffer> MB) {
-    *AddStream(Task)->OS << MB->getBuffer();
+    *AddStream(Task, moduleName)->OS << MB->getBuffer();
   };
 
   FileCache Cache;


        


More information about the llvm-commits mailing list