aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/synthesis.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/synth/synthesis.adb b/src/synth/synthesis.adb
index e2d72142e..6583460cf 100644
--- a/src/synth/synthesis.adb
+++ b/src/synth/synthesis.adb
@@ -58,7 +58,8 @@ package body Synthesis is
Synth_Top_Entity (Global_Instance, Arch, Config, Inst);
Synth_All_Instances;
if Errorout.Nbr_Errors > 0 then
- raise Compilation_Error;
+ M := No_Module;
+ return;
end if;
M := Get_Top_Module (Global_Instance);