[PATCH] D107760: [lldb] Fix warning -Wnon-virtual-dtor.
Adrian Kuegel via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 9 05:36:38 PDT 2021
akuegel created this revision.
akuegel added a reviewer: bkramer.
akuegel requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
When making the emit function virtual, the destructor needs to become
virtual as well.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D107760
Files:
clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
Index: clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
===================================================================
--- clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
+++ 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107760.365167.patch
Type: text/x-patch
Size: 815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210809/47fed4c8/attachment.bin>
More information about the cfe-commits
mailing list