Avoid failure due to incomplete type specification.

--

PiperOrigin-RevId: 251048081
This commit is contained in:
Jacques Pienaar 2019-06-01 08:37:50 -07:00 committed by Mehdi Amini
parent af98d82476
commit 482d39eb98
2 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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.