From: Mehdi Amini Date: Sun, 2 Jan 2022 23:43:52 +0000 (+0000) Subject: Use `= default` for the ValueShapeRange copy-constructor (NFC) X-Git-Tag: upstream/15.0.7~21857 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f127d8aaaef2ad4fc461c13bab2ec1482ea34f0;p=platform%2Fupstream%2Fllvm.git Use `= default` for the ValueShapeRange copy-constructor (NFC) This makes it trivially copyable. --- diff --git a/mlir/include/mlir/Interfaces/InferTypeOpInterface.h b/mlir/include/mlir/Interfaces/InferTypeOpInterface.h index c4f8f2d..3ed9dcc 100644 --- a/mlir/include/mlir/Interfaces/InferTypeOpInterface.h +++ b/mlir/include/mlir/Interfaces/InferTypeOpInterface.h @@ -165,10 +165,7 @@ public: ValueShapeRange(const std::initializer_list &values) : ValueShapeRange(ValueRange(values)) {} - ValueShapeRange(const ValueShapeRange &other) : RangeBaseT(other) { - operandShape = other.operandShape; - valueToShape = other.valueToShape; - } + ValueShapeRange(const ValueShapeRange &) = default; /// Sets the Value to ShapeAdaptor mapping function and returns this. ValueShapeRange &setValueToShapeMapping(ValueShapeMapFn fn) {