mirror of
https://github.com/dlang/dmd.git
synced 2025-04-29 06:30:10 +03:00
Replace scope(success) with scope(exit) (#20593)
This commit is contained in:
parent
02095d6b93
commit
128f23b132
2 changed files with 3 additions and 2 deletions
|
@ -3934,7 +3934,7 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
scope (success) result.rvalue = exp.rvalue;
|
scope (exit) result.rvalue = exp.rvalue;
|
||||||
|
|
||||||
Dsymbol scopesym;
|
Dsymbol scopesym;
|
||||||
Dsymbol s = sc.search(exp.loc, exp.ident, scopesym);
|
Dsymbol s = sc.search(exp.loc, exp.ident, scopesym);
|
||||||
|
|
|
@ -2871,7 +2871,8 @@ private void expressionPrettyPrint(Expression e, ref OutBuffer buf, ref HdrGenSt
|
||||||
|
|
||||||
if (e.rvalue)
|
if (e.rvalue)
|
||||||
buf.writestring("__rvalue(");
|
buf.writestring("__rvalue(");
|
||||||
scope (success)
|
|
||||||
|
scope (exit)
|
||||||
if (e.rvalue)
|
if (e.rvalue)
|
||||||
buf.writeByte(')');
|
buf.writeByte(')');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue