commit | ba22d55b4b252aa618332b5e7b6d7eab7ef50cb6 | [log] [tgz] |
---|---|---|
author | Tres Popp <tpopp@google.com> | Mon Nov 22 12:49:00 2021 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Nov 25 06:16:41 2021 -0800 |
tree | 309ef6c3c9b5d55de32ed8d49a4da5151c1617e3 | |
parent | 03cb7e9b7c17f1ec279861d529e4fbbc3efdad6b [diff] |
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 GitOrigin-RevId: 6eca1957eeee0a0c12c4b7156f58b184630e2118
See https://mlir.llvm.org/ for more information.