diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala b/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala index f54e102fca..f56c50cfc5 100644 --- a/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala +++ b/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala @@ -398,11 +398,13 @@ trait BasicBlocks requires ICodes { preds } -/* override def equals(other: Any): Boolean = other match { + override def equals(other: Any): Boolean = other match { case that: BasicBlock => that.label == label && that.code == code case _ => false } -*/ + + override def hashCode = label + // Instead of it, rather use a printer def print() : unit = print(java.lang.System.out) |