Commit Graph

2 Commits

Author SHA1 Message Date
Alex Richardson f5d4a58b4a [NFC] Use FileCheck for llvm-reduce interesness test
This makes the test added in 6187eeb683
easier to understand since you no longer have to look at another script
to see if it's doing the right thing.
2020-07-21 09:03:45 +01:00
Alex Richardson 6187eeb683 [llvm-reduce] Fix incorrect indices in argument reduction pass
The function extractArgumentsFromModule() was passing a one-based index to,
but replaceFunctionCalls() was expecting a zero-based argument index. This
resulted in assertion errors when reducing function call arguments with
different types. Additionally, the

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D84099
2020-07-19 18:06:47 +01:00