File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -847,15 +847,16 @@ bool AreAllStoredPropertiesDefaultInitableRequest::evaluate(
847
847
for (auto idx : range (pbd->getNumPatternEntries ())) {
848
848
bool HasStorage = false ;
849
849
bool CheckDefaultInitializer = true ;
850
- pbd->getPattern (idx)->forEachVariable ([&](VarDecl *VD) {
851
- // If one of the bound variables is @NSManaged, go ahead no matter
852
- // what.
853
- if (VD->getAttrs ().hasAttribute <NSManagedAttr>())
854
- CheckDefaultInitializer = false ;
855
-
856
- if (VD->hasStorageOrWrapsStorage ())
857
- HasStorage = true ;
858
- });
850
+ pbd->getPattern (idx)->forEachVariable (
851
+ [&HasStorage, &CheckDefaultInitializer](VarDecl *VD) {
852
+ // If one of the bound variables is @NSManaged, go ahead no matter
853
+ // what.
854
+ if (VD->getAttrs ().hasAttribute <NSManagedAttr>())
855
+ CheckDefaultInitializer = false ;
856
+
857
+ if (VD->hasStorageOrWrapsStorage ())
858
+ HasStorage = true ;
859
+ });
859
860
860
861
if (!HasStorage) continue ;
861
862
You can’t perform that action at this time.
0 commit comments