Remove extraneous VN code (#86407)
authorBruce Forstall <brucefo@microsoft.com>
Thu, 18 May 2023 01:12:43 +0000 (18:12 -0700)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 01:12:43 +0000 (18:12 -0700)
* Remove extraneous code

This wasn't invoking the JitHashTable destructor as evidently intended,
though the destructor was already being invoked by default.

Fixes #86372

* Feedback: delete entire VNMap dtor

src/coreclr/jit/valuenum.h

index 5d59852..94ba28b 100644 (file)
@@ -242,10 +242,6 @@ public:
         VNMap(CompAllocator alloc) : JitHashTable<fromType, keyfuncs, ValueNum>(alloc)
         {
         }
-        ~VNMap()
-        {
-            ~VNMap<fromType, keyfuncs>::JitHashTable();
-        }
 
         bool Set(fromType k, ValueNum val)
         {