From 255b2d916ec794078cfd0c351d3e921f8701142a Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Mon, 21 Jan 2019 21:16:06 +0000 Subject: Merge dmd upstream 180465274 Reduces the memory footprint of the CTFE interpreter by replacing new with emplacement new in many places. gcc/d/ChangeLog: 2019-01-21 Iain Buclaw * d-frontend.cc (Compiler::paintAsType): Update for new signature. From-SVN: r268124 --- gcc/d/dmd/compiler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/d/dmd/compiler.h') diff --git a/gcc/d/dmd/compiler.h b/gcc/d/dmd/compiler.h index e8ab992..a852078 100644 --- a/gcc/d/dmd/compiler.h +++ b/gcc/d/dmd/compiler.h @@ -19,6 +19,7 @@ class Expression; class Module; class Type; struct Scope; +struct UnionExp; // DMD-generated module `__entrypoint` where the C main resides extern Module *entrypoint; @@ -28,7 +29,7 @@ extern Module *rootHasMain; struct Compiler { // CTFE support for cross-compilation. - static Expression *paintAsType(Expression *, Type *); + static Expression *paintAsType(UnionExp *, Expression *, Type *); // Backend static void loadModule(Module *); static void genCmain(Scope *); -- cgit v1.1