diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-07-22 18:23:51 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-07-22 18:23:51 +0000 |
commit | c2bcf1549bc6e4978a4dfbeb1a3e7df35a26e630 (patch) | |
tree | 40c730cefa7650fefb1070224d175b86b27a03c2 /llvm/lib/Support/Unix/Signals.inc | |
parent | 397b0da8d72f62b7ea8676135806c47b7b51b1d1 (diff) | |
download | bcm5719-llvm-c2bcf1549bc6e4978a4dfbeb1a3e7df35a26e630.tar.gz bcm5719-llvm-c2bcf1549bc6e4978a4dfbeb1a3e7df35a26e630.zip |
Remove C++98 workaround in llvm::sys::DontRemoveFileOnSignal()
llvm-svn: 242920
Diffstat (limited to 'llvm/lib/Support/Unix/Signals.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Signals.inc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc index bfe2a3a380e..68e10435c7f 100644 --- a/llvm/lib/Support/Unix/Signals.inc +++ b/llvm/lib/Support/Unix/Signals.inc @@ -268,13 +268,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) - I->c_str(); } /// AddSignalHandler - Add a function to be called when a signal is delivered |