Skip to content

Commit 16f2a1f

Browse files
committed
[mlir] Apply ClangTidy findings
move constructors should be marked noexcept
1 parent c5d16e7 commit 16f2a1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/include/mlir/IR/BuiltinAttributeInterfaces.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct ElementsAttrIndexer {
3636
ElementsAttrIndexer()
3737
: ElementsAttrIndexer(/*isContiguous=*/true, /*isSplat=*/true) {}
3838
ElementsAttrIndexer(ElementsAttrIndexer &&rhs)
39-
: isContiguous(rhs.isContiguous), isSplat(rhs.isSplat) {
39+
: isContiguous(rhs.isContiguous), isSplat(rhs.isSplat) noexcept {
4040
if (isContiguous)
4141
conState = rhs.conState;
4242
else

mlir/lib/Bindings/Python/TransformInterpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace py = pybind11;
2323
namespace {
2424
struct PyMlirTransformOptions {
2525
PyMlirTransformOptions() { options = mlirTransformOptionsCreate(); };
26-
PyMlirTransformOptions(PyMlirTransformOptions &&other) {
26+
PyMlirTransformOptions(PyMlirTransformOptions &&other) noexcept {
2727
options = other.options;
2828
other.options.ptr = nullptr;
2929
}

0 commit comments

Comments
 (0)