Internals: Add VL_DO_CLEAR delete protections. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-01-18 10:29:49 -05:00
parent 2f4954ca68
commit 09199f79a6
23 changed files with 57 additions and 48 deletions
+1 -2
View File
@@ -480,8 +480,7 @@ void EmitCSyms::closeSplit() {
if (!m_ofp || m_ofp == m_ofpBase) return;
puts("}\n");
delete m_ofp;
m_ofp = NULL;
VL_DO_CLEAR(delete m_ofp, m_ofp = NULL);
}
void EmitCSyms::checkSplit(bool usesVfinal) {