mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
Merge pull request #9169 from WalterBright/copyLiteral
don't need to copy the result of copyLiteral() merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>
This commit is contained in:
commit
3a4398aad0
1 changed files with 12 additions and 3 deletions
|
@ -2740,7 +2740,10 @@ public:
|
|||
result = e;
|
||||
}
|
||||
else
|
||||
result = copyLiteral(e).copy();
|
||||
{
|
||||
*pue = copyLiteral(e);
|
||||
result = pue.exp();
|
||||
}
|
||||
}
|
||||
|
||||
override void visit(AssocArrayLiteralExp e)
|
||||
|
@ -2823,7 +2826,10 @@ public:
|
|||
result = aae;
|
||||
}
|
||||
else
|
||||
result = copyLiteral(e).copy();
|
||||
{
|
||||
*pue = copyLiteral(e);
|
||||
result = pue.exp();
|
||||
}
|
||||
}
|
||||
|
||||
override void visit(StructLiteralExp e)
|
||||
|
@ -2910,7 +2916,10 @@ public:
|
|||
result = sle;
|
||||
}
|
||||
else
|
||||
result = copyLiteral(e).copy();
|
||||
{
|
||||
*pue = copyLiteral(e);
|
||||
result = pue.exp();
|
||||
}
|
||||
}
|
||||
|
||||
// Create an array literal of type 'newtype' with dimensions given by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue