Fix expand optimization slowing --lint-only. Closes #2091.

This commit is contained in:
Wilson Snyder
2020-01-09 18:04:49 -05:00
parent 525c79bd0a
commit aac02c1ed1
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -470,7 +470,8 @@ void process() {
}
// Expand macros and wide operators into C++ primitives
if (!v3Global.opt.xmlOnly()
if (!v3Global.opt.lintOnly()
&& !v3Global.opt.xmlOnly()
&& v3Global.opt.oExpand()) {
V3Expand::expandAll(v3Global.rootp());
}