From 223fde6b958c2f74eb655d269bb21f06ceb53c39 Mon Sep 17 00:00:00 2001 From: Brent Royal-Gordon Date: Thu, 18 Apr 2019 17:45:04 -0700 Subject: [PATCH] Distinguish subscript member type from result type --- lib/Sema/CSGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/CSGen.cpp b/lib/Sema/CSGen.cpp index ab78de3153af5..dd6b6cb9e2ad5 100644 --- a/lib/Sema/CSGen.cpp +++ b/lib/Sema/CSGen.cpp @@ -1080,7 +1080,7 @@ namespace { // Add the member constraint for a subscript declaration. // FIXME: weak name! - auto memberTy = CS.createTypeVariable(resultLocator, TVO_CanBindToNoEscape); + auto memberTy = CS.createTypeVariable(memberLocator, TVO_CanBindToNoEscape); // FIXME: synthesizeMaterializeForSet() wants to statically dispatch to // a known subscript here. This might be cleaner if we split off a new