diff --git a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp --- a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp +++ b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp @@ -277,7 +277,7 @@ } } - virtual ~SparseTensorStorage() = default; + ~SparseTensorStorage() override = default; /// Get the rank of the tensor. uint64_t getRank() const { return sizes.size(); } diff --git a/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp b/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp --- a/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp +++ b/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp @@ -25,7 +25,7 @@ public: TestUniformQuantizedValueConverter(UniformQuantizedType type) : UniformQuantizedValueConverter(type), qtype(type) {} - APInt quantizeFloatToInt(APFloat expressedValue) const { + APInt quantizeFloatToInt(APFloat expressedValue) const override { return APInt(qtype.getStorageType().cast().getWidth(), 5L); }