Added an assert.

llvm-svn: 90285
This commit is contained in:
Fariborz Jahanian 2009-12-01 23:35:33 +00:00
parent 4d9ab43f23
commit 037bcb5be3
1 changed files with 4 additions and 1 deletions

View File

@ -1808,9 +1808,12 @@ void CodeGenFunction::EmitDtorEpilogue(const CXXDestructorDecl *DD,
}
// If we have a deleting destructor, emit a call to the delete operator.
if (DtorType == Dtor_Deleting)
if (DtorType == Dtor_Deleting) {
assert(DD->getOperatorDelete() &&
"operator delete missing - EmitDtorEpilogue");
EmitDeleteCall(DD->getOperatorDelete(), LoadCXXThis(),
getContext().getTagDeclType(ClassDecl));
}
}
void CodeGenFunction::SynthesizeDefaultDestructor(const CXXDestructorDecl *Dtor,