Fix OSS build
authorNicolas Vasilache <ntv@google.com>
Wed, 11 Dec 2019 20:22:04 +0000 (12:22 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 11 Dec 2019 20:33:37 +0000 (12:33 -0800)
PiperOrigin-RevId: 285036782

mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h

index 9a9603a..b7e3990 100644 (file)
@@ -86,10 +86,10 @@ inline static constexpr StringLiteral getWindowIteratorTypeName() {
 
 /// Use to encode that a particular iterator type has window semantics.
 inline static ArrayRef<StringRef> getAllIteratorTypeNames() {
-  static const StringRef names[3] = {getParallelIteratorTypeName(),
-                                     getReductionIteratorTypeName(),
-                                     getWindowIteratorTypeName()};
-  return names;
+  static StringRef names[3] = {getParallelIteratorTypeName(),
+                               getReductionIteratorTypeName(),
+                               getWindowIteratorTypeName()};
+  return llvm::makeArrayRef(names);
 }
 
 /// Returns the iterator of a certain type.