diff options
author | John McCall <rjmccall@apple.com> | 2009-11-03 19:33:12 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-03 19:33:12 +0000 |
commit | 6c94a6d77f456f23ecd4c2061e6413786b5e6571 (patch) | |
tree | a31ba991d0398b4b73f6489fe05b06e9a046fce8 /include/clang | |
parent | 62db245427b1cfb64cc0a25c918e17489a4a039c (diff) |
Silence a warning by giving Parser::FieldCallback a virtual destructor, and
anchor the vtable to Parser.cpp for good measure.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Parse/Parser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index 14dc8f8e36..3849f9d0d5 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -983,6 +983,10 @@ private: struct FieldCallback { virtual DeclPtrTy invoke(FieldDeclarator &Field) = 0; + virtual ~FieldCallback() {} + + private: + virtual void _anchor(); }; void ParseStructDeclaration(DeclSpec &DS, FieldCallback &Callback); |