Skip to content

Commit 909d340

Browse files
committed
added comment
1 parent 2853c57 commit 909d340

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/CodeGen/CGDebugInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4362,6 +4362,8 @@ llvm::DISubroutineType *CGDebugInfo::getOrCreateFunctionType(const Decl *D,
43624362
return DBuilder.createSubroutineType(DBuilder.getOrCreateTypeArray({}));
43634363

43644364
if (const auto *Method = dyn_cast<CXXDestructorDecl>(D)) {
4365+
// Read method type from 'FnType' because 'D.getType()' does not cover
4366+
// implicit arguments for destructors.
43654367
return getOrCreateMethodTypeForDestructor(Method, F, FnType);
43664368
}
43674369

0 commit comments

Comments
 (0)