add a virtual dtor to MCTargetExpr, hopefully silencing some warnings.
authorChris Lattner <sabre@nondot.org>
Wed, 10 Feb 2010 21:37:31 +0000 (21:37 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 10 Feb 2010 21:37:31 +0000 (21:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95810 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCExpr.h

index 48a13f66d538d54602efbf8cab218bdcd4ca7aa8..fce7602c3b29be0845113475fd99d0b81b0aed81 100644 (file)
@@ -340,7 +340,7 @@ class MCTargetExpr : public MCExpr {
   virtual void Anchor();
 protected:
   MCTargetExpr() : MCExpr(Target) {}
-  
+  virtual ~MCTargetExpr() {}
 public:
   
   virtual void PrintImpl(raw_ostream &OS) const = 0;