[all-commits] [llvm/llvm-project] 6187ee: [llvm-reduce] Fix incorrect indices in argument re...

Alexander Richardson via All-commits all-commits at lists.llvm.org
Sun Jul 19 10:07:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6187eeb683d8c639282d437e6af585e9b7f9c93e
      https://github.com/llvm/llvm-project/commit/6187eeb683d8c639282d437e6af585e9b7f9c93e
  Author: Alex Richardson <Alexander.Richardson at cl.cam.ac.uk>
  Date:   2020-07-19 (Sun, 19 Jul 2020)

  Changed paths:
    A llvm/test/Reduce/remove-args-2.ll
    M llvm/tools/llvm-reduce/deltas/ReduceArguments.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list