[llvm-reduce] Fix a bug, improve error handling when running test
authorReid Kleckner <rnk@google.com>
Wed, 11 Sep 2019 20:29:22 +0000 (20:29 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 11 Sep 2019 20:29:22 +0000 (20:29 +0000)
commit6d5f0029fc06dbb9968c770a5101e109ddfa63f7
tree0b1ebb6c0cdb698f8b8ef8a29be39b71918b0392
parent09f320ad34153546e332e6322dec029714435e2c
[llvm-reduce] Fix a bug, improve error handling when running test

llvm::sys::ExecuteAndWait can report errors, so let's make use of that.

Second, while iterating uses of functions to remove, a call can appear
multiple times. Use a SetVector so we don't attempt to erase such a call
twice.

llvm-svn: 371653
llvm/tools/llvm-reduce/TestRunner.cpp
llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp