OSDN Git Service

Add a virtual destructor for LegalizerInfo.
authorAlexander Kornienko <alexfh@google.com>
Fri, 10 Feb 2017 17:00:27 +0000 (17:00 +0000)
committerAlexander Kornienko <alexfh@google.com>
Fri, 10 Feb 2017 17:00:27 +0000 (17:00 +0000)
lib/Target/X86/X86TargetMachine.cpp has a code that deletes an instance of a
LegalizerInfo descendant via a pointer to base.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294757 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/GlobalISel/LegalizerInfo.h

index 4a9e535..079b772 100644 (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