[cfe-commits] r90285 - /cfe/trunk/lib/CodeGen/CGCXX.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Dec 1 15:35:34 PST 2009
Author: fjahanian
Date: Tue Dec 1 17:35:33 2009
New Revision: 90285
URL: http://llvm.org/viewvc/llvm-project?rev=90285&view=rev
Log:
Added an assert.
Modified:
cfe/trunk/lib/CodeGen/CGCXX.cpp
Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=90285&r1=90284&r2=90285&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Tue Dec 1 17:35:33 2009
@@ -1808,9 +1808,12 @@
}
// 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,
More information about the cfe-commits
mailing list