[Lex] TokenConcatenation now takes const Preprocessor
authorEric Liu <ioeric@google.com>
Thu, 11 Oct 2018 17:35:29 +0000 (17:35 +0000)
committerEric Liu <ioeric@google.com>
Thu, 11 Oct 2018 17:35:29 +0000 (17:35 +0000)
Differential Revision: https://reviews.llvm.org/D52502

llvm-svn: 344262

clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h

index d10b862..828955d 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) {}