Tested locally with -DLLVM_USE_SANITIZER=Address
Differential Revision: https://reviews.llvm.org/D31551
Patch by Sam Clegg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299270
91177308-0d34-0410-b5e6-
96231b3b80d8
struct Section {
Section(SectionType SecType) : Type(SecType) {}
+ virtual ~Section();
SectionType Type;
std::vector<Relocation> Relocations;
#include "llvm/Support/MipsABIFlags.h"
namespace llvm {
+
+namespace WasmYAML {
+
+// Declared here rather than in the header to comply with:
+// http://llvm.org/docs/CodingStandards.html#provide-a-virtual-method-anchor-for-classes-in-headers
+Section::~Section() {}
+
+} // end namespace WasmYAML
+
namespace yaml {
void MappingTraits<WasmYAML::FileHeader>::mapping(