From: Gabe Black Date: Wed, 9 Sep 2020 00:45:16 +0000 (-0700) Subject: arch: Add a virtual destructor to BaseHTMCheckpoint. X-Git-Tag: v20.1.0.0~57 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63ac86ecbb08d578797e379f6102706b7d1e67e5;p=gem5.git 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 --- 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