diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp --- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp +++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp @@ -1093,6 +1093,7 @@ if (!FileOrErr) return FileOrErr.takeError(); File = *FileOrErr; + TempFiles.push_back(static_cast(File)); } }