From 0abec2744c0fa4ab4d88eb1d55d9a1117d35cd41 Mon Sep 17 00:00:00 2001 From: Nicolas Vasilache Date: Thu, 21 Nov 2019 08:46:14 -0800 Subject: [PATCH] Fix OSS builds - NFC PiperOrigin-RevId: 281757979 --- mlir/include/mlir/Dialect/Linalg/Transforms/LinalgTransforms.h | 2 +- mlir/lib/Dialect/Linalg/Transforms/LinalgTransforms.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/include/mlir/Dialect/Linalg/Transforms/LinalgTransforms.h b/mlir/include/mlir/Dialect/Linalg/Transforms/LinalgTransforms.h index 89126f5cf8b2..50c566f23480 100644 --- a/mlir/include/mlir/Dialect/Linalg/Transforms/LinalgTransforms.h +++ b/mlir/include/mlir/Dialect/Linalg/Transforms/LinalgTransforms.h @@ -32,7 +32,7 @@ namespace linalg { // Marker used as attribute name in generated Linalg rewriting transformations. struct LinalgTransforms { - static constexpr auto kLinalgTransformMarker = + static constexpr StringRef kLinalgTransformMarker = "__internal_linalg_transform__"; }; diff --git a/mlir/lib/Dialect/Linalg/Transforms/LinalgTransforms.cpp b/mlir/lib/Dialect/Linalg/Transforms/LinalgTransforms.cpp index 0a09a5a00077..b027d5524dfc 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/LinalgTransforms.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/LinalgTransforms.cpp @@ -30,7 +30,7 @@ using namespace mlir; using namespace mlir::linalg; // Marker used as attribute name in generated Linalg rewriting transformations. -const char *const mlir::linalg::LinalgTransforms::kLinalgTransformMarker; +constexpr StringRef mlir::linalg::LinalgTransforms::kLinalgTransformMarker; LogicalResult mlir::linalg::tileLinalgOpAndSetMarker(PatternRewriter &rewriter, Operation *op,