diff --git a/mlir/lib/Parser/AttributeParser.cpp b/mlir/lib/Parser/AttributeParser.cpp --- a/mlir/lib/Parser/AttributeParser.cpp +++ b/mlir/lib/Parser/AttributeParser.cpp @@ -510,7 +510,7 @@ // Check to see if we parse the literal from a hex string. if (hexStorage.hasValue() && - (eltType.isIntOrFloat() || eltType.isa())) + (eltType.isIntOrIndexOrFloat() || eltType.isa())) return getHexAttr(loc, type); // Check that the parsed storage size has the same number of elements to the