From: Jordan Rupprecht Date: Mon, 23 Jul 2018 17:38:05 +0000 (+0000) Subject: OpChain has subclasses, so add a virtual destructor. X-Git-Tag: llvmorg-7.0.0-rc1~826 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5daf61229292c9497d350a22a46b58ec30e5689;p=platform%2Fupstream%2Fllvm.git OpChain has subclasses, so add a virtual destructor. Summary: OpChain has subclasses, so add a virtual destructor. This fixes an issue when deleting subclasses of OpChain (see MatchSMLAD() specifically) in r337701. Reviewers: javed.absar Subscribers: llvm-commits, SjoerdMeijer, samparker Differential Revision: https://reviews.llvm.org/D49681 llvm-svn: 337713 --- diff --git a/llvm/lib/Target/ARM/ARMParallelDSP.cpp b/llvm/lib/Target/ARM/ARMParallelDSP.cpp index 24eb0bb..f3d8da6 100644 --- a/llvm/lib/Target/ARM/ARMParallelDSP.cpp +++ b/llvm/lib/Target/ARM/ARMParallelDSP.cpp @@ -64,6 +64,7 @@ namespace { bool ReadOnly = true; OpChain(Instruction *I, ValueList &vl) : Root(I), AllValues(vl) { } + virtual ~OpChain() = default; void SetMemoryLocations() { const auto Size = MemoryLocation::UnknownSize;