Skip to content

Commit f78cd2e

Browse files
authored
[cxx-interop] Fix ASTVerifier error when building SwiftCompilerSources
rdar://100214399
1 parent 762e0ba commit f78cd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ClangDerivedConformances.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void swift::conformToCxxIteratorIfNeeded(
159159
if (pointees.size() != 1)
160160
return;
161161
auto pointee = dyn_cast<VarDecl>(pointees.front());
162-
if (!pointee || pointee->isGetterMutating())
162+
if (!pointee || pointee->isGetterMutating() || pointee->getType()->hasError())
163163
return;
164164

165165
// Check if present: `func successor() -> Self`

0 commit comments

Comments
 (0)