Merge pull request #25490 from dcci/rdar48887384

[CastOptimizer] Set the correct debug scope for the SILBuilder.
This commit is contained in:
Davide Italiano
2019-06-14 18:58:34 -07:00
committed by GitHub
2 changed files with 13 additions and 1 deletions

View File

@@ -1572,7 +1572,7 @@ static bool optimizeStaticallyKnownProtocolConformance(
if (!Conformance)
return false;
SILBuilder B(Inst);
SILBuilderWithScope B(Inst);
SmallVector<ProtocolConformanceRef, 1> NewConformances;
NewConformances.push_back(Conformance.getValue());
ArrayRef<ProtocolConformanceRef> Conformances =