From ffe042333422649088689f15e96d684d2e09d408 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Tue, 6 Feb 2007 09:45:57 +0000 Subject: [PATCH] assert if someone tries to exchange a node with itself [r8595] --- ir/ir/irgmod.c | 1 + 1 file changed, 1 insertion(+) 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); /* -- 2.20.1