Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mlir] Revert to old fold logic in IR::Dialect::add{Types, Attributes…
…}() (llvm#79582) Fold expressions on Clang are limited to 256 elements. This causes compilation errors in cases when the amount of elements added exceeds this limit. Side-step the issue by restoring the original trick that would use the std::initializer_list. For the record, in our downstream Clang 16 gives: mlir/include/mlir/IR/Dialect.h:269:23: fatal error: instantiating fold expression with 688 arguments exceeded expression nesting limit of 256 (addType<Args>(), ...); Partially reverts 26d811b. Co-authored-by: Nikita Kudriavtsev <[email protected]>
- Loading branch information