Skip to content

Commit

Permalink
Explicit type qualification when calling destructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed Oct 24, 2019
1 parent c76eab4 commit 1021fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tvm/runtime/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<T*>(objptr);
tptr->~T();
tptr->T::~T();
delete reinterpret_cast<StorageType*>(tptr);
}
};
Expand Down

0 comments on commit 1021fdd

Please sign in to comment.