forked from OSchip/llvm-project
Avoid failure due to incomplete type specification.
-- PiperOrigin-RevId: 251048081
This commit is contained in:
parent
af98d82476
commit
482d39eb98
|
@ -806,9 +806,7 @@ public:
|
|||
NamedAttributeList(ArrayRef<NamedAttribute> attributes);
|
||||
|
||||
/// Return all of the attributes on this operation.
|
||||
ArrayRef<NamedAttribute> getAttrs() const {
|
||||
return attrs ? attrs.getValue() : llvm::None;
|
||||
}
|
||||
ArrayRef<NamedAttribute> getAttrs() const;
|
||||
|
||||
/// Replace the held attributes with ones provided in 'newAttrs'.
|
||||
void setAttrs(ArrayRef<NamedAttribute> attributes);
|
||||
|
|
|
@ -954,6 +954,10 @@ NamedAttributeList::NamedAttributeList(ArrayRef<NamedAttribute> attributes) {
|
|||
setAttrs(attributes);
|
||||
}
|
||||
|
||||
ArrayRef<NamedAttribute> NamedAttributeList::getAttrs() const {
|
||||
return attrs ? attrs.getValue() : llvm::None;
|
||||
}
|
||||
|
||||
/// Replace the held attributes with ones provided in 'newAttrs'.
|
||||
void NamedAttributeList::setAttrs(ArrayRef<NamedAttribute> attributes) {
|
||||
// Don't create an attribute list if there are no attributes.
|
||||
|
|
Loading…
Reference in New Issue