[clang] [lld] [llvm] [DTLTO] Refactor the DTLTO code. (PR #192629)

Konstantin Belochapka via cfe-commits cfe-commits at lists.llvm.org
Sun May 31 23:43:10 PDT 2026


================
@@ -1299,10 +1299,7 @@ Error LTO::checkPartiallySplit() {
 }
 
 Error LTO::run(AddStreamFn AddStream, FileCache Cache) {
-  llvm::scope_exit CleanUp([this]() { cleanup(); });
-
-  if (Error EC = serializeInputsForDistribution())
-    return EC;
+  llvm::scope_exit CleanUp([this]() { LTO::cleanup(); });
----------------
kbelochapka wrote:

Added the comment, removed `Base::cleanup()` call.

https://github.com/llvm/llvm-project/pull/192629


More information about the cfe-commits mailing list