]> granicus.if.org Git - clang/commitdiff
[Lex] TokenConcatenation now takes const Preprocessor
authorEric Liu <ioeric@google.com>
Tue, 2 Oct 2018 10:28:50 +0000 (10:28 +0000)
committerEric Liu <ioeric@google.com>
Tue, 2 Oct 2018 10:28:50 +0000 (10:28 +0000)
Differential Revision: https://reviews.llvm.org/D52502

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343573 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h

index d10b862ea0832c8139046777cfa33f22e476996d..828955dc100c2baa4db3431a844cc588c9cd09a6 100644 (file)
@@ -79,9 +79,9 @@ class FieldNode {
 protected:
   const FieldRegion *FR;
 
-  /// FieldNodes are never meant to be created on the heap, see
-  /// FindUninitializedFields::addFieldToUninits().
-  /* non-virtual */ ~FieldNode() = default;
+  // TODO: This destructor shouldn't be virtual, but breaks buildbots with
+  // -Werror -Wnon-virtual-dtor.
+  virtual ~FieldNode() = default;
 
 public:
   FieldNode(const FieldRegion *FR) : FR(FR) {}