Internals: Add assertions. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-01-25 10:19:59 -05:00
parent d64e6b3f9c
commit eafed88a6e
6 changed files with 10 additions and 4 deletions
+1
View File
@@ -104,6 +104,7 @@ private:
//
// V3Combine wouldn't likely be able to combine top-level
// routines anyway, so there's no harm in keeping these static.
UASSERT_OBJ(m_modp, scopep, "Scope not under module");
if (m_modp->isTop()) relativeRefOk = false;
//
// Use absolute refs if this scope is the only instance of the module.