From: Kazu Hirata Date: Tue, 17 Jan 2023 21:12:40 +0000 (-0800) Subject: [mlir] Fix a deprecation warning X-Git-Tag: upstream/17.0.6~20652 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b53b964093ba779c09a629b2cb9f497314ba0437;p=platform%2Fupstream%2Fllvm.git [mlir] Fix a deprecation warning This patch fixes: mlir/include/mlir/Dialect/Affine/LoopUtils.h:332:25: error: 'makeMutableArrayRef' is deprecated: Use deduction guide instead [-Werror,-Wdeprecated-declarations] --- diff --git a/mlir/include/mlir/Dialect/Affine/LoopUtils.h b/mlir/include/mlir/Dialect/Affine/LoopUtils.h index f598625..828f061 100644 --- a/mlir/include/mlir/Dialect/Affine/LoopUtils.h +++ b/mlir/include/mlir/Dialect/Affine/LoopUtils.h @@ -329,7 +329,7 @@ LogicalResult coalescePerfectlyNestedLoops(LoopOpTy op) { continue; assert(maxPos == start && "expected loop bounds to be known at the start of the band"); - auto band = llvm::makeMutableArrayRef(loops.data() + start, end - start); + auto band = llvm::MutableArrayRef(loops.data() + start, end - start); if (succeeded(coalesceLoops(band))) result = success(); break;