diff options
author | Tres Popp <tpopp@google.com> | 2021-11-22 12:49:00 +0100 |
---|---|---|
committer | Tres Popp <tpopp@google.com> | 2021-11-25 15:12:29 +0100 |
commit | 6eca1957eeee0a0c12c4b7156f58b184630e2118 (patch) | |
tree | 8794c4d3dd0671af5a9fb05663ef249bb4349941 /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp | |
parent | a25e08dd3ca265c0150a7b49537fee26b269c446 (diff) | |
download | llvm-6eca1957eeee0a0c12c4b7156f58b184630e2118.zip llvm-6eca1957eeee0a0c12c4b7156f58b184630e2118.tar.gz llvm-6eca1957eeee0a0c12c4b7156f58b184630e2118.tar.bz2 |
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
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
0 files changed, 0 insertions, 0 deletions