This method 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.
Additionally, this is inconsistent with the the case that the argument
attribute list does not have to be the same length as the number of
arguments. Lastly, this removes error functionality that is inconsistent
with other attribute getters where only the entire return value might be
a nullptr rather than nullptrs inside a list.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Ah, I meant DictionaryAttr::get(getContext()). DictionaryAttr() is going to be a null attribute.