Hi,
This patch fixes a missing call to va_end in getMatchError in the
front-end, merged from upstream dmd d16195406.
Bootstrapped and regression tested on x86_64-linux-gnu/-m32/-mx32 and
committed to mainline.
Regards,
Iain.
---
gcc/d/ChangeLog:
PR d/99917
* dmd/MERGE: Merge upstream dmd d16195406.
---
gcc/d/dmd/MERGE | 2 +-
gcc/d/dmd/mtype.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/d/dmd/MERGE b/gcc/d/dmd/MERGE
index a89184498c3..98c229d8254 100644
--- a/gcc/d/dmd/MERGE
+++ b/gcc/d/dmd/MERGE
@@ -1,4 +1,4 @@
-5cc71ff830fcfba218152360014298550be9180e
+d16195406e1795ee91f2acb8f522fcb4ec698f47
The first line of this file holds the git revision number of the last
merge done from the dlang/dmd repository.
diff --git a/gcc/d/dmd/mtype.c b/gcc/d/dmd/mtype.c
index 57aa244b8b8..1c73f50c205 100644
--- a/gcc/d/dmd/mtype.c
+++ b/gcc/d/dmd/mtype.c
@@ -5220,6 +5220,7 @@ static const char *getMatchError(const char *format, ...)
va_list ap;
va_start(ap, format);
buf.vprintf(format, ap);
+ va_end(ap);
return buf.extractChars();
}
--
2.27.0