Skip to content

Commit 1e0b2de

Browse files
authored
Merge pull request swiftlang#32149 from CodaFi/prima-fascie
2 parents f21279e + aca0dce commit 1e0b2de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/AST/Evaluator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ void evaluator::DependencyRecorder::realize(
383383
const DependencyCollector::Reference &ref) {
384384
auto *source = getActiveDependencySourceOrNull();
385385
assert(source && "cannot realize dependency without associated file!");
386-
if (!source->hasInterfaceHash()) {
386+
if (!source->isPrimary()) {
387387
return;
388388
}
389389
fileReferences[source].insert(ref);
@@ -434,7 +434,7 @@ void evaluator::DependencyRecorder::record(
434434
llvm::function_ref<void(DependencyCollector &)> rec) {
435435
assert(!isRecording && "Probably not a good idea to allow nested recording");
436436
auto *source = getActiveDependencySourceOrNull();
437-
if (!source || !source->hasInterfaceHash()) {
437+
if (!source || !source->isPrimary()) {
438438
return;
439439
}
440440

@@ -466,7 +466,7 @@ void evaluator::DependencyRecorder::replay(const swift::ActiveRequest &req) {
466466
assert(!isRecording && "Probably not a good idea to allow nested recording");
467467

468468
auto *source = getActiveDependencySourceOrNull();
469-
if (mode == Mode::StatusQuo || !source || !source->hasInterfaceHash()) {
469+
if (mode == Mode::StatusQuo || !source || !source->isPrimary()) {
470470
return;
471471
}
472472

0 commit comments

Comments
 (0)