diff options
author | Jeff Niu <jeff@modular.com> | 2022-08-30 09:46:56 -0700 |
---|---|---|
committer | Jeff Niu <jeff@modular.com> | 2022-08-30 14:12:48 -0700 |
commit | 1c66bacd6cde1f37d6ac96c45b389666a1334ec0 (patch) | |
tree | c4dead56e1bf707edc799cad42cad765d287437a /clang/lib/Lex/ModuleMap.cpp | |
parent | 5cf5708628a3a465d7845fb43e46bd7f97761ead (diff) | |
download | llvm-1c66bacd6cde1f37d6ac96c45b389666a1334ec0.zip llvm-1c66bacd6cde1f37d6ac96c45b389666a1334ec0.tar.gz llvm-1c66bacd6cde1f37d6ac96c45b389666a1334ec0.tar.bz2 |
[mlir] Fix try_value_begin_impl for DenseElementsAttr
The previous implementation would still crash if the element type was
not iterable. This patch changes SparseElementsAttr to properly
implement `try_value_begin_impl` according to ElementsAttr and changes
DenseElementsAttr to implement `tryGetValues` as the basis for querying
element values.
Depends on D132904
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D132958
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions