This is a follow up to #5932
There is some extra code that isn't used that may be deleted. IT should
also be deleted since it references code that has already been deleted
in #5932.
This polishes #5922
This commit is contained in:
Joshua Batista 2023-10-25 16:14:38 -07:00 коммит произвёл GitHub
Родитель 7c157be44d
Коммит 6e44415970
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -247,13 +247,6 @@ void llvm::sys::DontRemoveFileOnSignal(StringRef Filename) {
std::vector<std::string>::iterator I = FilesToRemove->end();
if (RI != FilesToRemove->rend())
I = FilesToRemove->erase(RI.base()-1);
// We need to call c_str() on every element which would have been moved by
// the erase. These elements, in a C++98 implementation where c_str()
// requires a reallocation on the first call may have had the call to c_str()
// made on insertion become invalid by being copied down an element.
for (std::vector<std::string>::iterator E = FilesToRemove->end(); I != E; ++I)
(void)I->c_str();
}
/// AddSignalHandler - Add a function to be called when a signal is delivered