diff --git a/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp b/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp --- a/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp +++ b/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp @@ -238,6 +238,7 @@ public: OpenCLBuiltinFileEmitterBase(RecordKeeper &Records, raw_ostream &OS) : Records(Records), OS(OS) {} + virtual ~OpenCLBuiltinFileEmitterBase() = default; // Entrypoint to generate the functions for testing all OpenCL builtin // functions. @@ -307,6 +308,7 @@ public: OpenCLBuiltinTestEmitter(RecordKeeper &Records, raw_ostream &OS) : OpenCLBuiltinFileEmitterBase(Records, OS) {} + virtual ~OpenCLBuiltinTestEmitter() = default; // Entrypoint to generate the functions for testing all OpenCL builtin // functions.