Skip to content

Commit 6e44415

Browse files
authored
[UNIX] Clean up Signals.inc (microsoft#5934)
This is a follow up to microsoft#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 microsoft#5932. This polishes microsoft#5922
1 parent 7c157be commit 6e44415

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Support/Unix/Signals.inc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,6 @@ void llvm::sys::DontRemoveFileOnSignal(StringRef Filename) {
247247
std::vector<std::string>::iterator I = FilesToRemove->end();
248248
if (RI != FilesToRemove->rend())
249249
I = FilesToRemove->erase(RI.base()-1);
250-
251-
// We need to call c_str() on every element which would have been moved by
252-
// the erase. These elements, in a C++98 implementation where c_str()
253-
// requires a reallocation on the first call may have had the call to c_str()
254-
// made on insertion become invalid by being copied down an element.
255-
for (std::vector<std::string>::iterator E = FilesToRemove->end(); I != E; ++I)
256-
(void)I->c_str();
257250
}
258251

259252
/// AddSignalHandler - Add a function to be called when a signal is delivered

0 commit comments

Comments
 (0)