Add ClassInfo flag for destructors.
Merge pull request #3725 from Safety0ff/cthasdtor

Add ClassInfo flag for destructors.