diff options
author | Andrei Golubev <andrey.golubev@intel.com> | 2024-01-29 10:37:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 09:37:11 +0100 |
commit | e3a38a75ddc6ff00301ec19a0e2488d00f2cc297 (patch) | |
tree | 3eff24e4896765ecc787d8b48c60e25d0e5e6883 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 66347e516e22f9159b86024071fb92f364ac4418 (diff) | |
download | llvm-e3a38a75ddc6ff00301ec19a0e2488d00f2cc297.zip llvm-e3a38a75ddc6ff00301ec19a0e2488d00f2cc297.tar.gz llvm-e3a38a75ddc6ff00301ec19a0e2488d00f2cc297.tar.bz2 |
[mlir] Revert to old fold logic in IR::Dialect::add{Types, Attributes}() (#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 26d811b3ecd2fa1ca3d9b41e17fb42b8c7ad03d6.
Co-authored-by: Nikita Kudriavtsev <nikita.kudriavtsev@intel.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions