File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -763,14 +763,19 @@ struct UseState {
763
763
}
764
764
}
765
765
766
- void recordConsumingBlock (SILBasicBlock *block, TypeTreeLeafTypeRange range ) {
766
+ SmallBitVector & getOrCreateConsumingBlock (SILBasicBlock *block) {
767
767
auto iter = consumingBlocks.find (block);
768
768
if (iter == consumingBlocks.end ()) {
769
769
iter =
770
770
consumingBlocks.insert ({block, SmallBitVector (getNumSubelements ())})
771
771
.first ;
772
772
}
773
- range.setBits (iter->second );
773
+ return iter->second ;
774
+ }
775
+
776
+ void recordConsumingBlock (SILBasicBlock *block, TypeTreeLeafTypeRange range) {
777
+ auto &consumingBits = getOrCreateConsumingBlock (block);
778
+ range.setBits (consumingBits);
774
779
}
775
780
776
781
void
You can’t perform that action at this time.
0 commit comments