bug fix
authorbdemsky <bdemsky>
Fri, 26 Jun 2009 00:45:46 +0000 (00:45 +0000)
committerbdemsky <bdemsky>
Fri, 26 Jun 2009 00:45:46 +0000 (00:45 +0000)
Robust/src/IR/Flat/Inliner.java

index 61f3fa50631d75c1de932fc4ccab738e9949ba2f..bd87b31428887440b4134da654b854a93574e99a 100644 (file)
@@ -133,7 +133,8 @@ public class Inliner {
            fnclone.setNewNext(i, fnnextclone);
          }
        } else {
-         fnclone.addNext(aftercallnode);
+         if (fnclone!=aftercallnode)
+           fnclone.addNext(aftercallnode);
        }
       }