mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 13:21:04 +08:00
Fix compiler warning introduced by r358261
Add a virtual destructor to the class with virtual methods. llvm-svn: 358284
This commit is contained in:
@@ -160,6 +160,8 @@ private:
|
||||
template <typename ResultT = void>
|
||||
class FPOProgramASTVisitor {
|
||||
protected:
|
||||
virtual ~FPOProgramASTVisitor() = default;
|
||||
|
||||
virtual ResultT Visit(FPOProgramNodeBinaryOp &binary,
|
||||
FPOProgramNode *&ref) = 0;
|
||||
virtual ResultT Visit(FPOProgramNodeUnaryOp &unary, FPOProgramNode *&ref) = 0;
|
||||
|
||||
Reference in New Issue
Block a user