forked from OSchip/llvm-project
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:
parent
3b87944433
commit
beda0f1923
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue