This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] [NFC] fix unused var warning
ClosedPublic

Authored by bondhugula on Dec 27 2019, 2:22 AM.

Details

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;
`

Diff Detail

Event Timeline

bondhugula created this revision.Dec 27 2019, 2:22 AM
ftynse accepted this revision.Dec 27 2019, 2:27 AM
This revision is now accepted and ready to land.Dec 27 2019, 2:27 AM
This revision was automatically updated to reflect the committed changes.