[all-commits] [llvm/llvm-project] be775a: [MLIR] [NFC] fix unused var warning

Uday Bondhugula via All-commits all-commits at lists.llvm.org
Fri Dec 27 03:05:15 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: be775a003856fe65ce8dc05075192da65975806f
      https://github.com/llvm/llvm-project/commit/be775a003856fe65ce8dc05075192da65975806f
  Author: Uday Bondhugula <uday at polymagelabs.com>
  Date:   2019-12-27 (Fri, 27 Dec 2019)

  Changed paths:
    M mlir/lib/Dialect/StandardOps/Ops.cpp

  Log Message:
  -----------
  [MLIR] [NFC] fix unused var warning

Summary:
Fix this warning:
`
[69/106] Building CXX object tools/mlir/lib/Dialect/StandardOps/CMakeFiles/MLIRStandardOps.dir/Ops.cpp.o
/home/uday/llvm-project/mlir/lib/Dialect/StandardOps/Ops.cpp: In member function ‘virtual mlir::PatternMatchResult {anonymous}::ViewOpShapeFolder::matchAndRewrite(mlir::ViewOp, mlir::PatternRewriter&) const’:
/home/uday/llvm-project/mlir/lib/Dialect/StandardOps/Ops.cpp:2575:14: warning: variable ‘dynamicOffsetOperandCount’ set but not used [-Wunused-but-set-variable]
 2575 |     unsigned dynamicOffsetOperandCount = 0;
`

Reviewers: rriddle, mehdi_amini, ftynse

Reviewed By: ftynse

Subscribers: jpienaar, burmako, shauheen, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D71922




More information about the All-commits mailing list