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 {
10911091// / supposed to lifetime-extend along.
10921092static PathLifetimeKind
10931093shouldLifetimeExtendThroughPath (const IndirectLocalPath &Path) {
1094- PathLifetimeKind Kind = PathLifetimeKind::Extend;
10951094 for (auto Elem : Path) {
10961095 if (Elem.Kind == IndirectLocalPathEntry::DefaultInit)
10971096 return PathLifetimeKind::Extend;
1098- else if (Elem.Kind != IndirectLocalPathEntry::LambdaCaptureInit)
1097+ if (Elem.Kind != IndirectLocalPathEntry::LambdaCaptureInit)
10991098 return PathLifetimeKind::NoExtend;
11001099 }
1101- return Kind ;
1100+ return PathLifetimeKind::Extend ;
11021101}
11031102
11041103// / 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