diff --git a/llvm/include/llvm/ADT/MapVector.h b/llvm/include/llvm/ADT/MapVector.h index 0727383310a0..1331b15b2d29 100644 --- a/llvm/include/llvm/ADT/MapVector.h +++ b/llvm/include/llvm/ADT/MapVector.h @@ -185,11 +185,9 @@ void MapVector::remove_if(Function Pred) { /// \brief A MapVector that performs no allocations if smaller than a certain /// size. template -class SmallMapVector - : public MapVector, - SmallVector, N>> { -public: - SmallMapVector() {} +struct SmallMapVector + : MapVector, + SmallVector, N>> { }; } // end namespace llvm