Skip to content

Commit d9bbc93

Browse files
[NFC][CAS] Cleanup CAS-based file system initialization
1 parent 8f1b7e1 commit d9bbc93

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Frontend/CachingUtils.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,7 @@ createCASFileSystem(ObjectStore &CAS, ArrayRef<std::string> FSRoots,
384384
auto ID = CAS.parseID(FSRoots.front());
385385
if (!ID)
386386
return ID.takeError();
387-
auto Ref = CAS.getReference(*ID);
388-
if (!Ref)
389-
return createCASObjectNotFoundError(*ID);
387+
return createCASFileSystem(CAS, *ID);
390388
}
391389

392390
auto NewRoot = mergeCASFileSystem(CAS, FSRoots);

0 commit comments

Comments
 (0)