From: Nicolas Vasilache Date: Wed, 11 Dec 2019 20:22:04 +0000 (-0800) Subject: Fix OSS build X-Git-Tag: llvmorg-11-init~1466^2~94 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beda0b2dc8f83ba369c0322be6d5a675eda1e390;p=platform%2Fupstream%2Fllvm.git Fix OSS build PiperOrigin-RevId: 285036782 --- diff --git a/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h b/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h index 9a9603a..b7e3990 100644 --- a/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h +++ b/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h @@ -86,10 +86,10 @@ inline static constexpr StringLiteral getWindowIteratorTypeName() { /// Use to encode that a particular iterator type has window semantics. inline static ArrayRef 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.