aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-10 21:37:31 +0000
committerChris Lattner <sabre@nondot.org>2010-02-10 21:37:31 +0000
commite3e7a369f20af66a96830d8bfe52668c9e2e1fa1 (patch)
tree69b6b9eb673139a6522d8de630cf911f787869cb
parent11d91e80b447e92d84389b60f0c55dcfd69caa4f (diff)
downloadexternal_llvm-e3e7a369f20af66a96830d8bfe52668c9e2e1fa1.zip
external_llvm-e3e7a369f20af66a96830d8bfe52668c9e2e1fa1.tar.gz
external_llvm-e3e7a369f20af66a96830d8bfe52668c9e2e1fa1.tar.bz2
add a virtual dtor to MCTargetExpr, hopefully silencing some warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95810 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/MC/MCExpr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h
index 48a13f6..fce7602 100644
--- a/include/llvm/MC/MCExpr.h
+++ b/include/llvm/MC/MCExpr.h
@@ -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;