We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
enumerateReferencesInFile
1 parent 46a093a commit cdfab78Copy full SHA for cdfab78
include/swift/AST/Evaluator.h
@@ -22,6 +22,7 @@
22
#include "swift/AST/EvaluatorDependencies.h"
23
#include "swift/AST/RequestCache.h"
24
#include "swift/Basic/AnyValue.h"
25
+#include "swift/Basic/Assertions.h"
26
#include "swift/Basic/Debug.h"
27
#include "swift/Basic/LangOptions.h"
28
#include "swift/Basic/Statistic.h"
@@ -208,6 +209,7 @@ class Evaluator {
208
209
void enumerateReferencesInFile(
210
const SourceFile *SF,
211
evaluator::DependencyRecorder::ReferenceEnumerator f) const {
212
+ ASSERT(recorder.isRecordingEnabled() && "Dep recording should be enabled");
213
return recorder.enumerateReferencesInFile(SF, f);
214
}
215
0 commit comments