From: Christian Würdig Date: Tue, 6 Feb 2007 09:45:57 +0000 (+0000) Subject: assert if someone tries to exchange a node with itself X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ffe042333422649088689f15e96d684d2e09d408;p=libfirm assert if someone tries to exchange a node with itself [r8595] --- diff --git a/ir/ir/irgmod.c b/ir/ir/irgmod.c index b60424081..7d55d7a32 100644 --- a/ir/ir/irgmod.c +++ b/ir/ir/irgmod.c @@ -54,6 +54,7 @@ turn_into_tuple (ir_node *node, int arity) void exchange (ir_node *old, ir_node *nw) { + assert(old != nw && "Exchanging node with itself is not allowed"); hook_replace(old, nw); /*