From: Mehdi Amini Date: Fri, 10 May 2019 05:56:02 +0000 (-0700) Subject: Fix class/struct mismatch between declaration/definition (NFC) X-Git-Tag: llvmorg-11-init~1466^2~1781 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6459c821bfe2035833bbe35a8241f2e73f0794ac;p=platform%2Fupstream%2Fllvm.git Fix class/struct mismatch between declaration/definition (NFC) Fix clang warnings -- PiperOrigin-RevId: 247557395 --- diff --git a/mlir/examples/Linalg/Linalg1/include/linalg1/ViewType.h b/mlir/examples/Linalg/Linalg1/include/linalg1/ViewType.h index c58e12c..f4c317b 100644 --- a/mlir/examples/Linalg/Linalg1/include/linalg1/ViewType.h +++ b/mlir/examples/Linalg/Linalg1/include/linalg1/ViewType.h @@ -23,7 +23,7 @@ namespace linalg { -class ViewTypeStorage; +struct ViewTypeStorage; /// A ViewType represents a range abstraction on top of an underlying storage /// type. It is parameterizable by the underlying element type and the rank of diff --git a/mlir/include/mlir/IR/AffineMap.h b/mlir/include/mlir/IR/AffineMap.h index 1df6ac7..5670d45 100644 --- a/mlir/include/mlir/IR/AffineMap.h +++ b/mlir/include/mlir/IR/AffineMap.h @@ -30,7 +30,7 @@ namespace mlir { namespace detail { -class AffineMapStorage; +struct AffineMapStorage; } // end namespace detail class AffineExpr; diff --git a/mlir/include/mlir/Linalg/IR/LinalgTypes.h b/mlir/include/mlir/Linalg/IR/LinalgTypes.h index 38ef3cb..eaf391c 100644 --- a/mlir/include/mlir/Linalg/IR/LinalgTypes.h +++ b/mlir/include/mlir/Linalg/IR/LinalgTypes.h @@ -46,7 +46,7 @@ public: /// A BufferType represents a contiguous block of memory that can be allocated /// and deallocated. A buffer cannot be indexed directly, a view must be /// laid out on a buffer to give it indexing semantics. -class BufferTypeStorage; +struct BufferTypeStorage; class BufferType : public Type::TypeBase { public: // Used for generic hooks in TypeBase. @@ -93,7 +93,7 @@ public: /// %2 = linalg.range %arg2:%arg3:%arg4 : !linalg.range /// %3 = linalg.view %1[%2, %2] : !linalg.view /// ``` -class ViewTypeStorage; +struct ViewTypeStorage; class ViewType : public Type::TypeBase { public: // Used for generic hooks in TypeBase.