Avoid failure due to incomplete type specification.
authorJacques Pienaar <jpienaar@google.com>
Sat, 1 Jun 2019 15:37:50 +0000 (08:37 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:14:39 +0000 (20:14 -0700)
--

PiperOrigin-RevId: 251048081

mlir/include/mlir/IR/Attributes.h
mlir/lib/IR/Attributes.cpp

index af8f68a..ddc05d1 100644 (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);
index fbcb1a6..1e902fb 100644 (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.