From fbd87b4fee19d464fdadeaceeff4228340942808 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 13 Dec 2020 21:49:42 +0000 Subject: [PATCH] Add extra debug output. --- elaborate.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/elaborate.cc b/elaborate.cc index 7c347c850..152297875 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -3926,8 +3926,13 @@ NetProc* PCallTask::elaborate_build_call_(Design*des, NetScope*scope, task, all the assignments, etc. Just return a no-op. */ if (const NetBlock*tp = dynamic_cast(def->proc())) { - if (tp->proc_first() == 0) + if (tp->proc_first() == 0) { + if (debug_elaborate) { + cerr << get_fileline() << ": PCallTask::elaborate_build_call_: " + << "Eliding call to empty task " << task->basename() << endl; + } return block; + } } /* If this is an automatic task, generate a statement to