Skip to content

Commit e156713

Browse files
authored
Merge pull request #25512 from apple/revert-25490-rdar48887384
Revert " [CastOptimizer] Set the correct debug scope for the SILBuilder. "
2 parents e006112 + 3ac3ff0 commit e156713

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

lib/SILOptimizer/Utils/CastOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ static bool optimizeStaticallyKnownProtocolConformance(
15721572
if (!Conformance)
15731573
return false;
15741574

1575-
SILBuilderWithScope B(Inst);
1575+
SILBuilder B(Inst);
15761576
SmallVector<ProtocolConformanceRef, 1> NewConformances;
15771577
NewConformances.push_back(Conformance.getValue());
15781578
ArrayRef<ProtocolConformanceRef> Conformances =

test/SILOptimizer/castoptimizer-wrongscope.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)