Skip to content

Commit ef6bf93

Browse files
authored
Merge pull request #61228 from apple/egorzhdan/scs-astverifier
[cxx-interop] Fix ASTVerifier error when building SwiftCompilerSources
2 parents 4413cee + f78cd2e commit ef6bf93

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)