https://github.com/victor-eds commented: Change LGTM. Also checking element types for other compound types (`ArrayType`, `PointerType` and `RuntimeArrayType`) would be a plus. https://github.com/llvm/llvm-project/pull/70005