[all-commits] [llvm/llvm-project] 6eca19: Don't store nullptrs in mlir::FuncOp::getAll*Attrs...

Tres via All-commits all-commits at lists.llvm.org
Thu Nov 25 06:12:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6eca1957eeee0a0c12c4b7156f58b184630e2118
      https://github.com/llvm/llvm-project/commit/6eca1957eeee0a0c12c4b7156f58b184630e2118
  Author: Tres Popp <tpopp at google.com>
  Date:   2021-11-25 (Thu, 25 Nov 2021)

  Changed paths:
    M mlir/include/mlir/IR/FunctionSupport.h

  Log Message:
  -----------
  Don't store nullptrs in mlir::FuncOp::getAll*Attrs' result

These methods for results and arguments would create an ArrayRef full
of nullptrs when there were no argument attributes. This is problematic
because this result could not be passed to the FuncOp::build creator
without causing a segfault. Now the list will have empty attributes.

Differential Revision: https://reviews.llvm.org/D114358




More information about the All-commits mailing list