We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1819d33 commit ddd4842Copy full SHA for ddd4842
include/swift/Sema/ConstraintSystem.h
@@ -5026,12 +5026,14 @@ class OpenUnboundGenericType {
5026
5027
class HandlePlaceholderType {
5028
ConstraintSystem &cs;
5029
- const ConstraintLocatorBuilder &locator;
+ ConstraintLocator *locator;
5030
5031
public:
5032
explicit HandlePlaceholderType(ConstraintSystem &cs,
5033
const ConstraintLocatorBuilder &locator)
5034
- : cs(cs), locator(locator) {}
+ : cs(cs) {
5035
+ this->locator = cs.getConstraintLocator(locator);
5036
+ }
5037
5038
Type operator()(PlaceholderTypeRepr *placeholderRepr) const {
5039
return cs.createTypeVariable(
0 commit comments