This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Skip calling simple destructors
AbandonedPublic

Authored by tbaeder on Dec 31 2022, 9:21 AM.

Details

Summary

Calling them isn't needed if I understand correctly.

Diff Detail

Event Timeline

tbaeder created this revision.Dec 31 2022, 9:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 31 2022, 9:21 AM
tbaeder requested review of this revision.Dec 31 2022, 9:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 31 2022, 9:21 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

This still would have to call the destructors of base and member types, right? And this just means that it isn't user defined AND isn't deleted for some reason, so this doesn't mean 'trivial'.

What a shame. :(

tbaeder abandoned this revision.Jan 5 2023, 4:43 AM

I added the isTrivial() checks to the new version in https://reviews.llvm.org/D137070.