File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -3749,10 +3749,9 @@ class DeclDeserializer {
3749
3749
lifetimeDependencies.push_back (*info);
3750
3750
}
3751
3751
3752
- if (!lifetimeDependencies.empty ()) {
3753
- ctx.evaluator .cacheOutput (LifetimeDependenceInfoRequest{ctor},
3754
- ctx.AllocateCopy (lifetimeDependencies));
3755
- }
3752
+ ctx.evaluator .cacheOutput (LifetimeDependenceInfoRequest{ctor},
3753
+ lifetimeDependencies.empty ()? std::nullopt :
3754
+ ctx.AllocateCopy (lifetimeDependencies));
3756
3755
3757
3756
if (auto errorConvention = MF.maybeReadForeignErrorConvention ())
3758
3757
ctor->setForeignErrorConvention (*errorConvention);
@@ -4338,10 +4337,9 @@ class DeclDeserializer {
4338
4337
lifetimeDependencies.push_back (*info);
4339
4338
}
4340
4339
4341
- if (!lifetimeDependencies.empty ()) {
4342
- ctx.evaluator .cacheOutput (LifetimeDependenceInfoRequest{fn},
4343
- ctx.AllocateCopy (lifetimeDependencies));
4344
- }
4340
+ ctx.evaluator .cacheOutput (LifetimeDependenceInfoRequest{fn},
4341
+ lifetimeDependencies.empty () ? std::nullopt
4342
+ : ctx.AllocateCopy (lifetimeDependencies));
4345
4343
4346
4344
if (auto errorConvention = MF.maybeReadForeignErrorConvention ())
4347
4345
fn->setForeignErrorConvention (*errorConvention);
You can’t perform that action at this time.
0 commit comments