[PATCH] D71922: [MLIR] [NFC] fix unused var warning

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 27 03:08:16 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rGbe775a003856: [MLIR] [NFC] fix unused var warning (authored by bondhugula, committed by ftynse).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71922/new/

https://reviews.llvm.org/D71922

Files:
  mlir/lib/Dialect/StandardOps/Ops.cpp


Index: mlir/lib/Dialect/StandardOps/Ops.cpp
===================================================================
--- mlir/lib/Dialect/StandardOps/Ops.cpp
+++ mlir/lib/Dialect/StandardOps/Ops.cpp
@@ -2513,6 +2513,7 @@
     auto newMemRefType =
         MemRefType::get(newShapeConstants, memrefType.getElementType(), {map},
                         memrefType.getMemorySpace());
+    (void)dynamicOffsetOperandCount; // unused in opt mode
     assert(static_cast<int64_t>(newOperands.size()) ==
            dynamicOffsetOperandCount + newMemRefType.getNumDynamicDims());
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71922.235402.patch
Type: text/x-patch
Size: 571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191227/36d9682f/attachment.bin>


More information about the llvm-commits mailing list