Skip to content

Commit 4c4b9ae

Browse files
authored
detab source code (dlang#20962)
1 parent 4261907 commit 4c4b9ae

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

compiler/src/dmd/expressionsem.d

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4890,7 +4890,7 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
48904890
{
48914891
return setError();
48924892
}
4893-
if (!exp.placement.type.isNaked())
4893+
if (!exp.placement.type.isNaked())
48944894
{
48954895
error(p.loc, "PlacementExpression `%s` of type `%s` be unshared and mutable", p.toChars(), toChars(p.type));
48964896
return setError();
@@ -5221,7 +5221,7 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
52215221
return;
52225222
}
52235223
else if (sc.needsCodegen() && // interpreter doesn't need this lowered
5224-
!exp.placement &&
5224+
!exp.placement &&
52255225
!exp.onstack && !exp.type.isScopeClass()) // these won't use the GC
52265226
{
52275227
/* replace `new T(arguments)` with `core.lifetime._d_newclassT!T(arguments)`
@@ -5327,8 +5327,8 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
53275327
}
53285328

53295329
exp.type = exp.type.pointerTo();
5330-
if (!exp.placement)
5331-
tryLowerToNewItem(exp);
5330+
if (!exp.placement)
5331+
tryLowerToNewItem(exp);
53325332
}
53335333
else if (tb.ty == Tarray)
53345334
{
@@ -5407,9 +5407,9 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
54075407
goto LskipNewArrayLowering;
54085408
}
54095409

5410-
if (exp.placement) // no need to lower
5411-
{
5412-
}
5410+
if (exp.placement) // no need to lower
5411+
{
5412+
}
54135413
else if (nargs == 1)
54145414
{
54155415
auto hook = global.params.tracegc ? Id._d_newarrayTTrace : Id._d_newarrayT;
@@ -5495,7 +5495,7 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
54955495

54965496
exp.type = exp.type.pointerTo();
54975497
if (!exp.placement)
5498-
tryLowerToNewItem(exp);
5498+
tryLowerToNewItem(exp);
54995499
}
55005500
else if (tb.ty == Taarray)
55015501
{

0 commit comments

Comments
 (0)