llvm-reduce: Report file opening errors
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 24 Oct 2022 16:08:54 +0000 (09:08 -0700)
committerMatt Arsenault <arsenm2@gmail.com>
Tue, 1 Nov 2022 01:37:33 +0000 (18:37 -0700)
commit4cf5e22d20dfb725e92b57c7ac4bba65d7cd62be
tree72b3553631c5332d2c4efd685af9818eb6703d1d
parent07f12170a28941eb84d21c28e25ce561de3309d8
llvm-reduce: Report file opening errors

This was also trying to write the bitcode to the failed file
on failure, which asserts. Also, consistently use
ToolOutputFile, instead of one path manually removing
the temp file.
llvm/tools/llvm-reduce/deltas/Delta.cpp