Apply clang-tidy fixes for modernize-use-override to MLIR (NFC)

Reviewed By: rriddle, jpienaar

Differential Revision: https://reviews.llvm.org/D116356
This commit is contained in:
Mehdi Amini 2022-01-02 01:22:19 +00:00
parent 513463b589
commit 0ae2e9580c
2 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ public:
}
}
virtual ~SparseTensorStorage() = default;
~SparseTensorStorage() override = default;
/// Get the rank of the tensor.
uint64_t getRank() const { return sizes.size(); }

View File

@ -25,7 +25,7 @@ class TestUniformQuantizedValueConverter
public:
TestUniformQuantizedValueConverter(UniformQuantizedType type)
: UniformQuantizedValueConverter(type), qtype(type) {}
APInt quantizeFloatToInt(APFloat expressedValue) const {
APInt quantizeFloatToInt(APFloat expressedValue) const override {
return APInt(qtype.getStorageType().cast<IntegerType>().getWidth(), 5L);
}