mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
[svn r140] did a lot of the work towards being able to pass multiple modules on the command line. not complete yet though
This commit is contained in:
@@ -3456,7 +3456,7 @@ Expression *SymOffExp::semantic(Scope *sc)
|
||||
if (v)
|
||||
{
|
||||
v->checkNestedReference(sc, loc);
|
||||
v->llvmNeedsStorage = true;
|
||||
v->needsStorage = true;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
@@ -3601,7 +3601,7 @@ Expression *VarExp::modifiableLvalue(Scope *sc, Expression *e)
|
||||
if (v && v->canassign == 0 &&
|
||||
(var->isConst() || (global.params.Dversion > 1 && var->isFinal())))
|
||||
error("cannot modify final variable '%s'", var->toChars());
|
||||
v->llvmNeedsStorage = true;
|
||||
v->needsStorage = true;
|
||||
|
||||
if (var->isCtorinit())
|
||||
{ // It's only modifiable if inside the right constructor
|
||||
@@ -5887,7 +5887,7 @@ Expression *AddrExp::semantic(Scope *sc)
|
||||
}
|
||||
else if (v)
|
||||
{
|
||||
v->llvmNeedsStorage = true;
|
||||
v->needsStorage = true;
|
||||
}
|
||||
}
|
||||
else if (e1->op == TOKarray)
|
||||
|
||||
Reference in New Issue
Block a user