SSAInstruction equals based on iindex

This commit is contained in:
Cosmin Radoi 2014-11-10 19:40:45 -06:00
parent a97df8ceec
commit e2dce7be00
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}
}