Debug Info: Add a virtual destructor to DwarfExpression.
[opencl/llvm.git] / 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;