[Mono-devel-list] Misleading definition in mini.h

Massimiliano Mantione Massimiliano.Mantione at siemens.com
Mon Nov 24 07:20:10 EST 2003


I do not have write access to cvs...

It seems that line 267 in mini.h (from mono 0.28) is a zombie
definition (it is never used, and removing it does not prevent
mono from building).

#define inst_switch data.op[0].switch_blocks

The line is wrong, because "switch_blocks" does not exist.

Also, the line is misleading, because the switch targer blocks
are stored in "inst_many_bb" (which is defined as
"data.op[1].many_blocks"), and their number sould be read with
"GPOINTER_TO_INT (inst->klass)".

I think the line should be removed.

Ciao,
  Massimiliano



More information about the Mono-devel-list mailing list