* Added internal error when asked to generate code for 'if expr in []'

This commit is contained in:
daniel 2002-07-23 14:31:00 +00:00
parent aa2fef1733
commit feb28ce902
2 changed files with 22 additions and 2 deletions

View File

@ -118,6 +118,13 @@ implementation
compares,maxcompares:word;
i:byte;
begin
if byteset(Aset^)=[] then
{The expression...
if expr in []
...is allways false. It should be optimized away in the
resulttype pass, and thus never occur here. Since we
do generate wrong code for it, do internalerror.}
internalerror(2002072301);
analizeset:=false;
ranges:=false;
numparts:=0;
@ -1016,7 +1023,10 @@ begin
end.
{
$Log$
Revision 1.35 2002-07-20 11:58:04 florian
Revision 1.36 2002-07-23 14:31:00 daniel
* Added internal error when asked to generate code for 'if expr in []'
Revision 1.35 2002/07/20 11:58:04 florian
* types.pas renamed to defbase.pas because D6 contains a types
unit so this would conflicts if D6 programms are compiled
+ Willamette/SSE2 instructions to assembler added

View File

@ -148,6 +148,13 @@ implementation
compares,maxcompares:word;
i:byte;
begin
if Aset=[] then
{The expression...
if expr in []
...is allways false. It should be optimized away in the
resulttype pass, and thus never occur here. Since we
do generate wrong code for it, do internalerror.}
internalerror(2002072301);
analizeset:=false;
ranges:=false;
numparts:=0;
@ -584,7 +591,10 @@ begin
end.
{
$Log$
Revision 1.9 2002-07-23 12:34:30 daniel
Revision 1.10 2002-07-23 14:31:00 daniel
* Added internal error when asked to generate code for 'if expr in []'
Revision 1.9 2002/07/23 12:34:30 daniel
* Readded old set code. To use it define 'oldset'. Activated by default
for ppc.