From 1021fddc5b98101f6ff9a5249ff1db6649f125b3 Mon Sep 17 00:00:00 2001 From: tqchen Date: Wed, 23 Oct 2019 22:11:57 -0700 Subject: [PATCH] Explicit type qualification when calling destructor. --- include/tvm/runtime/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tvm/runtime/memory.h b/include/tvm/runtime/memory.h index 18a87e922bf77..09374cdbe0ddd 100644 --- a/include/tvm/runtime/memory.h +++ b/include/tvm/runtime/memory.h @@ -114,7 +114,7 @@ class SimpleObjAllocator : // because objptr and tptr may not be the same // depending on how sub-class allocates the space. T* tptr = static_cast(objptr); - tptr->~T(); + tptr->T::~T(); delete reinterpret_cast(tptr); } };