[llvm] e547d04 - Fix build failure for [CGData][ThinLTO] Global Outlining with Two-CodeGen Rounds (#90933)

Kyungwoo Lee via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 16:09:45 PDT 2024


Author: Kyungwoo Lee
Date: 2024-10-09T16:09:22-07:00
New Revision: e547d041faf455986e511f375f1a3d2bb084ef87

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

LOG: Fix build failure for [CGData][ThinLTO] Global Outlining with Two-CodeGen Rounds (#90933)

Added: 
    

Modified: 
    llvm/lib/LTO/LTO.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index 8e7675f442567a..90c4e2c3cd131c 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -2084,7 +2084,7 @@ Error LTO::runThinLTO(AddStreamFn AddStream, FileCache Cache,
   LLVM_DEBUG(dbgs() << "[TwoRounds] Running the second round of codegen\n");
   auto SecondRoundLTO = std::make_unique<SecondRoundThinBackend>(
       Conf, ThinLTO.CombinedIndex, Parallelism, ModuleToDefinedGVSummaries,
-      AddStream, Cache, std::move(IR.getResult()), CombinedHash);
+      AddStream, Cache, IR.getResult(), CombinedHash);
   return RunBackends(SecondRoundLTO.get());
 }
 


        


More information about the llvm-commits mailing list