From 63ac86ecbb08d578797e379f6102706b7d1e67e5 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 8 Sep 2020 17:45:16 -0700 Subject: [PATCH] arch: Add a virtual destructor to BaseHTMCheckpoint. Since it has virtual methods, it should also have a virtual destructor. My compiler complains otherwise, which breaks my build. Change-Id: I44bba97b76931bab6e3511fcdee79831080c12d4 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34215 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/arch/generic/htm.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/arch/generic/htm.hh b/src/arch/generic/htm.hh index 74e2d443b..5f45f5da5 100644 --- a/src/arch/generic/htm.hh +++ b/src/arch/generic/htm.hh @@ -137,6 +137,7 @@ class BaseHTMCheckpoint { reset(); } + virtual ~BaseHTMCheckpoint() {} /** * Every ISA implementing HTM support should override the -- 2.30.2