mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 15:53:42 +00:00
[llvm-readobj] flush output before crash
Otherwise the output could be lost. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372372 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a01099f226
commit
bb41d69931
@ -842,8 +842,10 @@ bool Decoder::dumpXDataRecord(const COFFObjectFile &COFF,
|
||||
|
||||
if ((int64_t)(Contents.size() - Offset - 4 * HeaderWords(XData) -
|
||||
(XData.E() ? 0 : XData.EpilogueCount() * 4) -
|
||||
(XData.X() ? 8 : 0)) < (int64_t)ByteCodeLength)
|
||||
(XData.X() ? 8 : 0)) < (int64_t)ByteCodeLength) {
|
||||
SW.flush();
|
||||
report_fatal_error("Malformed unwind data");
|
||||
}
|
||||
|
||||
if (XData.E()) {
|
||||
ArrayRef<uint8_t> UC = XData.UnwindByteCode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user