1
0
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:
Peter Collingbourne 2017-01-19 23:10:14 +00:00
parent 65f612f852
commit 0228e0b628

View File

@ -372,6 +372,7 @@ static void writeToResolutionFile(raw_ostream &OS, InputFile *Input,
OS << 'x';
OS << '\n';
}
OS.flush();
assert(ResI == Res.end());
}