[llvm-reduce] Only write reduced output after we've saved it
authorArthur Eubanks <aeubanks@google.com>
Mon, 15 May 2023 22:45:54 +0000 (15:45 -0700)
committerArthur Eubanks <aeubanks@google.com>
Mon, 15 May 2023 22:49:22 +0000 (15:49 -0700)
commit7d2b7be28d903a74f3ca10b2d5f97d69e006df62
tree1f260b98d1a9dcc86bff7182de9e453b571ede95
parentee9c8b0d2dc3847a9b1b3045b1f76699c5e77335
[llvm-reduce] Only write reduced output after we've saved it

Otherwise we're just rewriting the currently saved module instead of the newly reduced one.

Doesn't affect the final output since we separately write that at the end.
llvm/tools/llvm-reduce/deltas/Delta.cpp