diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index eb361e9ed24..6b0463365a2 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -118,7 +118,7 @@ private: public: FoldingSetImpl(); - ~FoldingSetImpl(); + virtual ~FoldingSetImpl(); // Forward declaration. class Node; @@ -245,7 +245,7 @@ public: } }; -}; // End of namespace llvm. +} // End of namespace llvm. #endif