[llvm] r294757 - Add a virtual destructor for LegalizerInfo.
Alexander Kornienko via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 09:00:27 PST 2017
Author: alexfh
Date: Fri Feb 10 11:00:27 2017
New Revision: 294757
URL: http://llvm.org/viewvc/llvm-project?rev=294757&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
Modified: llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h?rev=294757&r1=294756&r2=294757&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h Fri Feb 10 11:00:27 2017
@@ -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
More information about the llvm-commits
mailing list