From 4bdbb03f93b95a273eb4c050a955df3bda6c2b1c Mon Sep 17 00:00:00 2001 From: Alexandru Militaru Date: Fri, 6 Dec 2019 20:38:02 +0200 Subject: [PATCH] Remove useless deferred semantic analysis 2 and 3 done when using -unittest flag --- src/dmd/dtemplate.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dmd/dtemplate.d b/src/dmd/dtemplate.d index 88ebcf6a8d31..910f0856a53c 100644 --- a/src/dmd/dtemplate.d +++ b/src/dmd/dtemplate.d @@ -7136,7 +7136,7 @@ extern (C++) class TemplateInstance : ScopeDsymbol { Module mi = minst; // instantiated . inserted module - if (global.params.useUnitTests || global.params.debuglevel) + if (global.params.debuglevel) { // Turn all non-root instances to speculative if (mi && !mi.isRoot())