mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-06-25 16:29:56 +00:00
Remove bogus code for applying unary &, ++, and -- operators to integer constants.
This is already precluded from executing by an earlier test, so there is no functional change.
This commit is contained in:
parent
7ab1875b54
commit
cd9a424499
|
@ -1311,17 +1311,12 @@ var
|
||||||
dispose(op^.left);
|
dispose(op^.left);
|
||||||
op^.left := nil;
|
op^.left := nil;
|
||||||
case op^.token.kind of
|
case op^.token.kind of
|
||||||
opplusplus, {posfix ++}
|
|
||||||
plusplusop : op1 := op1+1; {prefix ++}
|
|
||||||
opminusminus, {postfix --}
|
|
||||||
minusminusop: op1 := op1-1; {prefix --}
|
|
||||||
tildech : op1 := ~op1; {~}
|
tildech : op1 := ~op1; {~}
|
||||||
excch : begin {!}
|
excch : begin {!}
|
||||||
op1 := ord(op1 = 0);
|
op1 := ord(op1 = 0);
|
||||||
ekind := intconst;
|
ekind := intconst;
|
||||||
end;
|
end;
|
||||||
uminus : op1 := -op1; {unary -}
|
uminus : op1 := -op1; {unary -}
|
||||||
uand : op1 := 0; {unary &}
|
|
||||||
uasterisk : Error(79); {unary *}
|
uasterisk : Error(79); {unary *}
|
||||||
otherwise: Error(57);
|
otherwise: Error(57);
|
||||||
end; {case}
|
end; {case}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user