Skip to content

Commit 2126356

Browse files
committed
[func.d] place inlinedNestedCallees under version(MARS)
It is unused by LDC and GDC
1 parent 7384645 commit 2126356

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

compiler/src/dmd/declaration.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@ class FuncDeclaration : public Declaration
608608

609609
// Sibling nested functions which called this one
610610
FuncDeclarations siblingCallers;
611-
611+
#if MARS
612612
FuncDeclarations *inlinedNestedCallees;
613-
613+
#endif
614614
AttributeViolation* safetyViolation;
615615
AttributeViolation* nogcViolation;
616616
AttributeViolation* pureViolation;

compiler/src/dmd/func.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ extern (C++) class FuncDeclaration : Declaration
270270
/// Sibling nested functions which called this one
271271
FuncDeclarations siblingCallers;
272272

273+
version(MARS)
273274
FuncDeclarations* inlinedNestedCallees;
274275

275276
/// In case of failed `@safe` inference, store the error that made the function `@system` for

compiler/src/dmd/glue/package.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ void FuncDeclaration_toObjFile(FuncDeclaration fd, bool multiobj)
559559
}
560560
}
561561

562+
version(MARS)
562563
if (fd.inlinedNestedCallees)
563564
{
564565
/* https://issues.dlang.org/show_bug.cgi?id=15333

compiler/src/dmd/inline.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,6 +2033,7 @@ private void expandInline(Loc callLoc, FuncDeclaration fd, FuncDeclaration paren
20332033
}
20342034
scope ids = new InlineDoState(parent, fd);
20352035

2036+
version(MARS)
20362037
if (fd.isNested())
20372038
{
20382039
if (!parent.inlinedNestedCallees)

0 commit comments

Comments
 (0)