Silence compiler warnings.
[oota-llvm.git] / utils / TableGen / SetTheory.h
index c648d46e60d95274aa98862582be41dafabb4c03..2202f22396ad0bffceabd2145cebbb5d7ce6296a 100644 (file)
@@ -66,6 +66,8 @@ public:
 
   /// Operator - A callback representing a DAG operator.
   struct Operator {
+    virtual ~Operator() {}
+
     /// apply - Apply this operator to Expr's arguments and insert the result
     /// in Elts.
     virtual void apply(SetTheory&, DagInit *Expr, RecSet &Elts) =0;
@@ -75,6 +77,8 @@ public:
   /// set into a fully expanded list of elements. Expanders provide a way for
   /// users to define named sets that can be used in DAG expressions.
   struct Expander {
+    virtual ~Expander() {}
+
     virtual void expand(SetTheory&, Record*, RecSet &Elts) =0;
   };