diff options
| author | Tobias Gysi <tobias.gysi@nextsilicon.com> | 2023-08-03 07:55:58 +0000 | 
|---|---|---|
| committer | Tobias Gysi <tobias.gysi@nextsilicon.com> | 2023-08-03 08:29:16 +0000 | 
| commit | fe5370dd50e48f827aaee9f5fa80e751b1759a25 (patch) | |
| tree | 761de62af4c1c2221f7b0d2ed23ed29c7b5e54a0 /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | e68ffa373f7f3e61de4e030d126f9968679cdfdc (diff) | |
| download | llvm-fe5370dd50e48f827aaee9f5fa80e751b1759a25.zip llvm-fe5370dd50e48f827aaee9f5fa80e751b1759a25.tar.gz llvm-fe5370dd50e48f827aaee9f5fa80e751b1759a25.tar.bz2 | |
[mlir] Store segment sizes in std::array
This revision uses std::array instead of normal c arrays to store the
operand and result segment sizes. This is a follow up to
https://reviews.llvm.org/D155919, which converted the operand and result
segment sizes to properties. Its use of c arrays triggered warnings in
downstream projects due to the direct comparison of c arrays. This
revision fixes the warnings using std::arrays that implement a
proper comparison operator, which compares the array elements rather
that the array pointers.
Note: it seems the comparison operator is effectively dead code for now.
It still seems useful to fix the warning and ensure the comparison works
as expected assume someone starts using it at some point in time.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D156888
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
