Mercurial > hg > truffle
diff graal/com.oracle.graal.lir/src/com/oracle/graal/lir/FrameMap.java @ 16118:5cbaad0b7387
Verify usage of equals method in LIRKind.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 17 Jun 2014 11:53:13 +0200 |
parents | 26d95e1247d0 |
children | eda09bc52ab9 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/FrameMap.java Tue Jun 17 10:09:11 2014 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/FrameMap.java Tue Jun 17 11:53:13 2014 +0200 @@ -285,7 +285,7 @@ if (freedSlots != null) { for (Iterator<StackSlot> iter = freedSlots.iterator(); iter.hasNext();) { StackSlot s = iter.next(); - if (s.getLIRKind() == kind) { + if (s.getLIRKind().equals(kind)) { iter.remove(); if (freedSlots.isEmpty()) { freedSlots = null;