diff --git a/lib/CodeGen/AsmPrinter/DwarfExpression.h b/lib/CodeGen/AsmPrinter/DwarfExpression.h index ffee3bc43a2..8f7cba48fa8 100644 --- a/lib/CodeGen/AsmPrinter/DwarfExpression.h +++ b/lib/CodeGen/AsmPrinter/DwarfExpression.h @@ -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;