mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 06:31:50 +08:00
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