Skip to content

Commit 0dff899

Browse files
committed
[Evaluator] Temp hack to get more info on underdiagnosed cycle
1 parent 96fcb7a commit 0dff899

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/AST/Evaluator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void Evaluator::finishedRequest(const ActiveRequest &request) {
8888
}
8989

9090
void Evaluator::diagnoseCycle(const ActiveRequest &request) {
91-
if (debugDumpCycles) {
91+
if (true /* FIXME(NCG): Temporary hack, remove before flight */ || debugDumpCycles) {
9292
const auto printIndent = [](llvm::raw_ostream &OS, unsigned indent) {
9393
OS.indent(indent);
9494
OS << "`--";
@@ -121,6 +121,7 @@ void Evaluator::diagnoseCycle(const ActiveRequest &request) {
121121

122122
OS << "\n";
123123
}
124+
assert(false) // FIXME(NCG): Temporary hack, remove before flight
124125

125126
request.diagnoseCycle(diags);
126127
for (const auto &step : llvm::reverse(activeRequests)) {

0 commit comments

Comments
 (0)