diff --git a/gen/abi.h b/gen/abi.h index abfc014b..2906f155 100644 --- a/gen/abi.h +++ b/gen/abi.h @@ -39,6 +39,8 @@ namespace llvm // return rewrite rule struct ABIRewrite { + virtual ~ABIRewrite() {} + /// get a rewritten value back to its original form virtual llvm::Value* get(Type* dty, DValue* v) = 0; @@ -56,6 +58,8 @@ struct ABIRewrite // interface called by codegen struct TargetABI { + virtual ~TargetABI() {} + /// Returns the ABI for the target we're compiling for static TargetABI* getTarget(); diff --git a/gen/asmstmt.cpp b/gen/asmstmt.cpp index 8acc2e00..7e3e3a06 100644 --- a/gen/asmstmt.cpp +++ b/gen/asmstmt.cpp @@ -139,6 +139,7 @@ int AsmStatement::comeFrom() struct AsmParserCommon { + virtual ~AsmParserCommon() {} virtual void run(Scope* sc, AsmStatement* asmst) = 0; virtual std::string getRegName(int i) = 0; };