mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
LTO: Flush the resolution file after writing to it.
Without this the file could be truncated if the linker crashes. llvm-svn: 292532
This commit is contained in:
parent
65f612f852
commit
0228e0b628
@ -372,6 +372,7 @@ static void writeToResolutionFile(raw_ostream &OS, InputFile *Input,
|
||||
OS << 'x';
|
||||
OS << '\n';
|
||||
}
|
||||
OS.flush();
|
||||
assert(ResI == Res.end());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user