Skip to content

Commit fd1baff

Browse files
Merge pull request #17904 from aschwaighofer/fix_getSpecializedConformance
ASTContext: Recompute the insert position in getSpecializedConformanc…
2 parents 501b0dd + c820a14 commit fd1baff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/AST/ASTContext.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,6 +1835,9 @@ ASTContext::getSpecializedConformance(Type type,
18351835
auto result
18361836
= new (*this, arena) SpecializedProtocolConformance(type, generic,
18371837
substitutions);
1838+
auto node = specializedConformances.FindNodeOrInsertPos(id, insertPos);
1839+
(void)node;
1840+
assert(!node);
18381841
specializedConformances.InsertNode(result, insertPos);
18391842
return result;
18401843
}

0 commit comments

Comments
 (0)