Skip to content

Commit e6845ca

Browse files
committed
[cxx-interop][NFC] Prettify stack trace for CxxIterator conformance synthesis
1 parent a39c78b commit e6845ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ClangImporter/ClangDerivedConformances.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "ClangDerivedConformances.h"
1414
#include "swift/AST/NameLookup.h"
1515
#include "swift/AST/ParameterList.h"
16+
#include "swift/AST/PrettyStackTrace.h"
1617

1718
using namespace swift;
1819

@@ -80,6 +81,8 @@ bool swift::isIterator(const clang::CXXRecordDecl *clangDecl) {
8081
void swift::conformToCxxIteratorIfNeeded(
8182
ClangImporter::Implementation &impl, NominalTypeDecl *decl,
8283
const clang::CXXRecordDecl *clangDecl) {
84+
PrettyStackTraceDecl trace("conforming to UnsafeCxxInputIterator", decl);
85+
8386
assert(decl);
8487
assert(clangDecl);
8588
ASTContext &ctx = decl->getASTContext();

0 commit comments

Comments
 (0)