Add a virtual destructor for LegalizerInfo.

lib/Target/X86/X86TargetMachine.cpp has a code that deletes an instance of a
LegalizerInfo descendant via a pointer to base.

llvm-svn: 294757
This commit is contained in:
Alexander Kornienko 2017-02-10 17:00:27 +00:00
parent 3b87944433
commit beda0f1923
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ public:
};
LegalizerInfo();
virtual ~LegalizerInfo() = default;
/// Compute any ancillary tables needed to quickly decide how an operation
/// should be handled. This must be called after all "set*Action"methods but