mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
For PR777:
Add an additional catch block to ensure that this function can't throw any exceptions, even one's we're not expecting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28309 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80626a7f6f
commit
c64f1488ed
@ -241,5 +241,8 @@ int llvm::DiffFilesWithTolerance(const sys::Path &FileA,
|
||||
} catch (const std::string &Msg) {
|
||||
if (Error) *Error = Msg;
|
||||
return 2;
|
||||
} catch (...) {
|
||||
*Error = "Unknown Exception Occurred";
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user