This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Start supporting virtual base classes
AbandonedPublic

Authored by tbaeder on Nov 7 2022, 8:59 AM.

Details

Summary

As discussed on IRC. This is just the bare minimum to support virtual base classes.

Diff Detail

Event Timeline

tbaeder created this revision.Nov 7 2022, 8:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2022, 8:59 AM
tbaeder requested review of this revision.Nov 7 2022, 8:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2022, 8:59 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
shafik added inline comments.Nov 14 2022, 12:45 PM
clang/lib/AST/Interp/Descriptor.cpp
126

To recurse or not seems to be a property of whether the base is virtual or not.

Maybe a enum w/ Base and Virtual base would be better and then the logic of whether to recurse can be kept local to the lambda,

147
tbaeder abandoned this revision.Jul 28 2023, 12:24 AM