d: Fix regression caused by recent refactoring
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 8 Jun 2020 20:11:00 +0000 (22:11 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Mon, 8 Jun 2020 20:11:00 +0000 (22:11 +0200)
gcc/d/ChangeLog:

PR d/95573
* dmd/MERGE: Merge upstream dmd 5041e56f1.

gcc/d/dmd/MERGE
gcc/d/dmd/mtype.c

index e2ebd27b19b79d19164ff0c6456b9058ce90ade2..163a70ddb26fffa68c0b2f48f2e326d8a8da587f 100644 (file)
@@ -1,4 +1,4 @@
-955b8b36f8bbacc59745b44cdf48ef1ddeb01bcd
+5041e56f12806f13a8fa5e98a6c98279636a8d2a
 
 The first line of this file holds the git revision number of the last
 merge done from the dlang/dmd repository.
index 7684516da9977211188e43304237f0eea53bc0e2..011aff7ec9399e10df87b863c3aba7a65c4f28fd 100644 (file)
@@ -9384,7 +9384,7 @@ Type *Parameter::isLazyArray()
             TypeDelegate *td = (TypeDelegate *)tel;
             TypeFunction *tf = td->next->toTypeFunction();
 
-            if (!tf->parameterList.varargs == VARARGnone && tf->parameterList.length() == 0)
+            if (tf->parameterList.varargs == VARARGnone && tf->parameterList.length() == 0)
             {
                 return tf->next;    // return type of delegate
             }