================
@@ -2326,6 +2336,35 @@ class OutOfProcessThinBackend : public CGThinBackend {
             else
               Err = std::move(E);
           }
+
+          if (Cache.isValid() &&
----------------
romanova-ekaterina wrote:
I will do it in a separate commit.
https://github.com/llvm/llvm-project/pull/156433