File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ BindingInfo BindingInfoBuilder::calculateBindingInfo(
99
99
S = &BS->Spaces .emplace_back (B.Space );
100
100
101
101
// The space is full - there are no free slots left, or the rest of the
102
- // slots are taken by an unbounded array. Set flag to report overlapping
103
- // binding later .
102
+ // slots are taken by an unbounded array. Report the overlapping to the
103
+ // caller .
104
104
if (S->FreeRanges .empty () || S->FreeRanges .back ().UpperBound < ~0u ) {
105
105
ReportOverlap (*this , B);
106
106
continue ;
@@ -117,6 +117,8 @@ BindingInfo BindingInfoBuilder::calculateBindingInfo(
117
117
if (B.UpperBound < ~0u )
118
118
S->FreeRanges .emplace_back (B.UpperBound + 1 , ~0u );
119
119
} else {
120
+ // We don't have room here. Report the overlapping binding to the caller
121
+ // and mark any extra space this binding would use as unavailable.
120
122
ReportOverlap (*this , B);
121
123
if (B.UpperBound < ~0u )
122
124
LastFreeRange.LowerBound =
You can’t perform that action at this time.
0 commit comments