Debug Info: Add a virtual destructor to DwarfExpression.
authorAdrian Prantl <aprantl@apple.com>
Mon, 12 Jan 2015 22:59:28 +0000 (22:59 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 12 Jan 2015 22:59:28 +0000 (22:59 +0000)
Thanks Chandler for noticing!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225724 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfExpression.h

index ffee3bc43a26d39f120f87e9b3adfd020f108b04..8f7cba48fa8436c113b59b938a2934b8e7f6cb67 100644 (file)
@@ -28,6 +28,7 @@ protected:
   TargetMachine &TM;
 public:
   DwarfExpression(TargetMachine &TM) : TM(TM) {}
+  virtual ~DwarfExpression() {};
 
   virtual void EmitOp(uint8_t Op, const char* Comment = nullptr) = 0;
   virtual void EmitSigned(int Value) = 0;