Differential Revision: https://reviews.llvm.org/D52502
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344262
91177308-0d34-0410-b5e6-
96231b3b80d8
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) {}