[mlir] Fix deprecation warnings (NFC)
authorKazu Hirata <kazu@google.com>
Mon, 12 Sep 2022 15:52:51 +0000 (08:52 -0700)
committerKazu Hirata <kazu@google.com>
Mon, 12 Sep 2022 15:52:51 +0000 (08:52 -0700)
commit6394ad4421bcea87ac3112bfd41505d337a4e5b6
treef34f045ca67086cb05b37d8357da17d4f582647e
parente4ee56b4e043710522e3d5ebb49cfbb5b6d52885
[mlir] Fix deprecation warnings (NFC)

This patch fixes a couple of warnings by switching to has_value/value:

  mlir/lib/Dialect/Vector/IR/VectorOps.cpp:529:28: error: 'hasValue'
  is deprecated: Use has_value
  instead. [-Werror,-Wdeprecated-declarations]

  mlir/lib/Dialect/Vector/IR/VectorOps.cpp:533:48: error: 'getValue'
  is deprecated: Use value
  instead. [-Werror,-Wdeprecated-declarations]
mlir/lib/Dialect/Vector/IR/VectorOps.cpp