Skip to content

Commit e571d07

Browse files
committed
Partially revert fix for #7005: Re-add logic back into overriding visitors
1 parent 1a29d1d commit e571d07

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

src/dmd/dinterpret.d

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,12 @@ public:
383383
ctfeCompile(s.elsebody);
384384
}
385385

386+
override void visit(ForwardingStatement s)
387+
{
388+
if (s.statement)
389+
s.statement.accept(this);
390+
}
391+
386392
override void visit(OnScopeStatement s)
387393
{
388394
debug (LOGCOMPILE)
@@ -1174,6 +1180,12 @@ public:
11741180
result = interpret(s.statement, istate);
11751181
}
11761182

1183+
override void visit(ForwardingStatement s)
1184+
{
1185+
if (s.statement)
1186+
s.statement.accept(this);
1187+
}
1188+
11771189
/**
11781190
Given an expression e which is about to be returned from the current
11791191
function, generate an error if it contains pointers to local variables.

src/dmd/hdrgen.d

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@ public:
191191
buf.writenl();
192192
}
193193

194+
override void visit(ForwardingStatement s)
195+
{
196+
if (s.statement)
197+
s.statement.accept(this);
198+
}
199+
194200
override void visit(WhileStatement s)
195201
{
196202
buf.writestring("while (");

src/dmd/s2ir.d

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,15 @@ private extern (C++) class S2irVisitor : Visitor
907907
}
908908
}
909909

910+
/***************************************
911+
*/
912+
913+
override void visit(ForwardingStatement s)
914+
{
915+
if (s.statement)
916+
s.statement.accept(this);
917+
}
918+
910919
/***************************************
911920
*/
912921

0 commit comments

Comments
 (0)