aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-environment.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-environment.adb')
-rw-r--r--src/synth/synth-environment.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/synth-environment.adb b/src/synth/synth-environment.adb
index 11c4b505d..0f5d8816e 100644
--- a/src/synth/synth-environment.adb
+++ b/src/synth/synth-environment.adb
@@ -1018,7 +1018,7 @@ package body Synth.Environment is
-- Build mux.
N1_Inst := Get_Net_Parent (N (1));
if Get_Id (N1_Inst) = Id_Mux2
- and then Get_Driver (Get_Mux2_I0 (N1_Inst)) = N (0)
+ and then Same_Net (Get_Driver (Get_Mux2_I0 (N1_Inst)), N (0))
then
Res := Build_Mux2
(Ctxt, Build_Dyadic (Ctxt, Id_And,