diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-08-23 08:25:07 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-08-23 08:25:07 +0000 |
commit | 54f616304240fcbc41ca9b9b2af38eeb1171e8a8 (patch) | |
tree | 868588b658de0a590993351bfecbc64d23f33fd9 /utils | |
parent | 4654a07e254b13d168e5470394c4d954cc260d03 (diff) | |
download | llvm-54f616304240fcbc41ca9b9b2af38eeb1171e8a8.tar.gz llvm-54f616304240fcbc41ca9b9b2af38eeb1171e8a8.tar.bz2 llvm-54f616304240fcbc41ca9b9b2af38eeb1171e8a8.tar.xz |
Fix some GCC warnings by providing a virtual destructor in the base of a class
hierarchy with virtual methods and using llvm_unreachable to properly indicate
unreachable states which would otherwise leave variables uninitialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/ClangAttrEmitter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index ee606e0e50..74ff668426 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/utils/TableGen/ClangAttrEmitter.cpp @@ -71,6 +71,7 @@ namespace { upperName[0] = std::toupper(upperName[0]); } } + virtual ~Argument() {} StringRef getLowerName() const { return lowerName; } StringRef getUpperName() const { return upperName; } |