[llvm] [SelectionDAG] Mark `SelectionDAGISel` destructor virtual (PR #94132)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 1 18:23:59 PDT 2024


https://github.com/paperchalice created https://github.com/llvm/llvm-project/pull/94132

None

>From da91dabbb0fe9247597f0fe7d40a4ec7cb112cfb Mon Sep 17 00:00:00 2001
From: PaperChalice <liujunchang97 at outlook.com>
Date: Sun, 2 Jun 2024 09:23:20 +0800
Subject: [PATCH] [SelectionDAG] Mark `SelectionDAGISel` destructor virtual

---
 llvm/include/llvm/CodeGen/SelectionDAGISel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/include/llvm/CodeGen/SelectionDAGISel.h b/llvm/include/llvm/CodeGen/SelectionDAGISel.h
index fe655543a4705..4972af927cf1e 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGISel.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGISel.h
@@ -78,7 +78,7 @@ class SelectionDAGISel {
 
   explicit SelectionDAGISel(TargetMachine &tm,
                             CodeGenOptLevel OL = CodeGenOptLevel::Default);
-  ~SelectionDAGISel();
+  virtual ~SelectionDAGISel();
 
   const TargetLowering *getTargetLowering() const { return TLI; }
 



More information about the llvm-commits mailing list