mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-12 10:24:10 +02:00
Align AlignDeclaration constructor signature to upstream version.
If there still are error messages benefiting from the added location information, the change should be upstreamed, as usual.
This commit is contained in:
@@ -507,9 +507,6 @@ Dsymbols *Parser::parseDeclDefs(int once)
|
||||
case TOKalign:
|
||||
{ unsigned n;
|
||||
|
||||
// LDC better align code locations
|
||||
Loc alignloc = loc;
|
||||
|
||||
s = NULL;
|
||||
nextToken();
|
||||
if (token.value == TOKlparen)
|
||||
@@ -532,7 +529,7 @@ Dsymbols *Parser::parseDeclDefs(int once)
|
||||
n = global.structalign; // default
|
||||
|
||||
a = parseBlock();
|
||||
s = new AlignDeclaration(alignloc, n, a);
|
||||
s = new AlignDeclaration(n, a);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user