start of new file
[IRC.git] / Robust / src / IR / Flat / TempFlagPair.java
index c7f4e68ea74b852d3835b91a2b6a3308d6b91829..21915d2c568a39b4394a8cf623b79968552e3896 100644 (file)
@@ -10,13 +10,20 @@ public class TempFlagPair {
        this.td=td;
     }
     public int hashCode() {
-       return fd.hashCode()^td.hashCode();
+       if (fd!=null)
+           return fd.hashCode()^td.hashCode();
+       else
+           return td.hashCode();
     }
 
     public TempDescriptor getTemp() {
        return td;
     }
 
+    public FlagDescriptor getFlag() {
+       return fd;
+    }
+
     public boolean equals(Object o) {
        if (!(o instanceof TempFlagPair))
            return false;