Skip to content

Commit e8be25b

Browse files
author
David Ungar
committed
Format
1 parent 179166c commit e8be25b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/AST/TypeCheckRequests.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,15 +467,17 @@ Optional<Type> DefaultTypeRequest::getCachedResult() const {
467467
if (!result)
468468
return None;
469469
assert(!isDependencyMissing(result) &&
470-
"Since the cache is now cached by SourceFile, the dependency should have been recorded when it was looked up.");
470+
"Since the cache is now cached by SourceFile, the dependency should "
471+
"have been recorded when it was looked up.");
471472
return result;
472473
}
473474

474475
bool DefaultTypeRequest::isDependencyMissing(Type result) const {
475476
if (const auto *NTD = result->getNominalOrBoundGenericNominal())
476477
if (auto *SF = getSourceFile())
477478
if (auto *tracker = SF->getReferencedNameTracker())
478-
return tracker->getTopLevelNames().find(NTD->getBaseName()) == tracker->getTopLevelNames().end();
479+
return tracker->getTopLevelNames().find(NTD->getBaseName()) ==
480+
tracker->getTopLevelNames().end();
479481
return false;
480482
}
481483

0 commit comments

Comments
 (0)