Skip to content

Commit 826fe84

Browse files
committed
[clang][Interp][NFC] Remove outdated FIXME comment
Virtual desturctors are already supported and tested in AST/Interp/records.cpp.
1 parent a9309e4 commit 826fe84

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2951,7 +2951,6 @@ bool ByteCodeExprGen<Emitter>::emitPrimCast(PrimType FromT, PrimType ToT,
29512951
/// When calling this, we have a pointer of the local-to-destroy
29522952
/// on the stack.
29532953
/// Emit destruction of record types (or arrays of record types).
2954-
/// FIXME: Handle virtual destructors.
29552954
template <class Emitter>
29562955
bool ByteCodeExprGen<Emitter>::emitRecordDestruction(const Descriptor *Desc) {
29572956
assert(Desc);

clang/test/AST/Interp/records.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,6 @@ namespace VirtualDtors {
734734
}
735735

736736
static_assert(foo());
737-
738-
739737
};
740738

741739
namespace QualifiedCalls {

0 commit comments

Comments
 (0)