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 @@ -762,14 +762,19 @@ struct UseState {
762
762
}
763
763
}
764
764
765
- void recordConsumingBlock (SILBasicBlock *block, TypeTreeLeafTypeRange range ) {
765
+ SmallBitVector & getOrCreateConsumingBlock (SILBasicBlock *block) {
766
766
auto iter = consumingBlocks.find (block);
767
767
if (iter == consumingBlocks.end ()) {
768
768
iter =
769
769
consumingBlocks.insert ({block, SmallBitVector (getNumSubelements ())})
770
770
.first ;
771
771
}
772
- range.setBits (iter->second );
772
+ return iter->second ;
773
+ }
774
+
775
+ void recordConsumingBlock (SILBasicBlock *block, TypeTreeLeafTypeRange range) {
776
+ auto &consumingBits = getOrCreateConsumingBlock (block);
777
+ range.setBits (consumingBits);
773
778
}
774
779
775
780
void
You can’t perform that action at this time.
0 commit comments