forked from OSchip/llvm-project
Substitute getI64IntegerAttr for the more verbose code it replaces.
-- PiperOrigin-RevId: 246227344
This commit is contained in:
parent
b14c4b4ca8
commit
45c8245cca
|
@ -137,7 +137,7 @@ static ArrayAttr makePositionAttr(FuncBuilder &builder,
|
|||
SmallVector<Attribute, 4> attrs;
|
||||
attrs.reserve(position.size());
|
||||
for (auto p : position)
|
||||
attrs.push_back(builder.getIntegerAttr(builder.getIntegerType(64), p));
|
||||
attrs.push_back(builder.getI64IntegerAttr(p));
|
||||
return builder.getArrayAttr(attrs);
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ static ArrayAttr makePositionAttr(FuncBuilder &builder,
|
|||
SmallVector<Attribute, 4> attrs;
|
||||
attrs.reserve(position.size());
|
||||
for (auto p : position)
|
||||
attrs.push_back(builder.getIntegerAttr(builder.getIntegerType(64), p));
|
||||
attrs.push_back(builder.getI64IntegerAttr(p));
|
||||
return builder.getArrayAttr(attrs);
|
||||
}
|
||||
|
||||
|
|
|
@ -409,7 +409,7 @@ struct ViewDescriptor {
|
|||
SmallVector<Attribute, 4> attrs;
|
||||
attrs.reserve(position.size());
|
||||
for (auto p : position)
|
||||
attrs.push_back(builder.getIntegerAttr(builder.getIntegerType(64), p));
|
||||
attrs.push_back(builder.getI64IntegerAttr(p));
|
||||
return builder.getArrayAttr(attrs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue