mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 07:32:13 +00:00
Apparently destroyFile() now throws an exception. Since this class is
designed to be put on the stack, that's not cool. Catch and ignore the exception. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19723 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
87a9b716c1
commit
fb01550ace
@ -46,8 +46,10 @@ void MoveFileOverIfUpdated(const std::string &New, const std::string &Old);
|
||||
: Filename(filename), DeleteIt(deleteIt) {}
|
||||
|
||||
~FileRemover() {
|
||||
if (DeleteIt)
|
||||
Filename.destroyFile();
|
||||
if (DeleteIt)
|
||||
try {
|
||||
Filename.destroyFile();
|
||||
} catch (...) {} // Ignore problems deleting the file.
|
||||
}
|
||||
|
||||
/// releaseFile - Take ownership of the file away from the FileRemover so it
|
||||
|
Loading…
x
Reference in New Issue
Block a user