SSAInstruction equals based on iindex
This commit is contained in:
parent
a97df8ceec
commit
e2dce7be00
|
@ -290,6 +290,11 @@ public abstract class SSAInstruction {
|
|||
*/
|
||||
@Override
|
||||
public final boolean equals(Object obj) {
|
||||
return this == obj;
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj != null && obj instanceof SSAInstruction)
|
||||
return this.iindex == ((SSAInstruction) obj).iindex;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue