From 81b226e1351206c09e40aeb1caa02c1c207d0b63 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Thu, 1 Jan 2015 08:05:41 +0000 Subject: [PATCH] Just use a using directive in SmallMapVector instead of inheriting from MapVector itself. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225059 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/MapVector.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/llvm/ADT/MapVector.h b/include/llvm/ADT/MapVector.h index 0727383310a..b10db611484 100644 --- a/include/llvm/ADT/MapVector.h +++ b/include/llvm/ADT/MapVector.h @@ -185,12 +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() {} -}; +using SmallMapVector = + MapVector, + SmallVector, N>>; } // end namespace llvm