File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1091,14 +1091,13 @@ enum PathLifetimeKind {
1091
1091
// / supposed to lifetime-extend along.
1092
1092
static PathLifetimeKind
1093
1093
shouldLifetimeExtendThroughPath (const IndirectLocalPath &Path) {
1094
- PathLifetimeKind Kind = PathLifetimeKind::Extend;
1095
1094
for (auto Elem : Path) {
1096
1095
if (Elem.Kind == IndirectLocalPathEntry::DefaultInit)
1097
1096
return PathLifetimeKind::Extend;
1098
- else if (Elem.Kind != IndirectLocalPathEntry::LambdaCaptureInit)
1097
+ if (Elem.Kind != IndirectLocalPathEntry::LambdaCaptureInit)
1099
1098
return PathLifetimeKind::NoExtend;
1100
1099
}
1101
- return Kind ;
1100
+ return PathLifetimeKind::Extend ;
1102
1101
}
1103
1102
1104
1103
// / Find the range for the first interesting entry in the path at or after I.
You can’t perform that action at this time.
0 commit comments