зеркало из https://github.com/microsoft/clang-1.git
Added an assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90285 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
6bc9768408
Коммит
affe67eae3
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче