diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-06-02 07:49:04 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-06-03 06:43:50 +0200 |
commit | 85c253db43b2bf0c24e388ce2d992199c7b2893f (patch) | |
tree | 0d4a092a41600a788b0663c9f463242907ae1543 /src | |
parent | 400603edd33141740197f17e831b0a0560c9d3fe (diff) | |
download | ghdl-85c253db43b2bf0c24e388ce2d992199c7b2893f.tar.gz ghdl-85c253db43b2bf0c24e388ce2d992199c7b2893f.tar.bz2 ghdl-85c253db43b2bf0c24e388ce2d992199c7b2893f.zip |
vhdl-prints: fix extra 'else' in disp_conditional_waveform.
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/vhdl-prints.adb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vhdl/vhdl-prints.adb b/src/vhdl/vhdl-prints.adb index cfec3b70d..f1704476a 100644 --- a/src/vhdl/vhdl-prints.adb +++ b/src/vhdl/vhdl-prints.adb @@ -2302,15 +2302,16 @@ package body Vhdl.Prints is Expr : Iir; begin Cond_Wf := Chain; - while Cond_Wf /= Null_Iir loop + loop Disp_Waveform (Ctxt, Get_Waveform_Chain (Cond_Wf)); Expr := Get_Condition (Cond_Wf); if Expr /= Null_Iir then Disp_Token (Ctxt, Tok_When); Print (Ctxt, Expr); - Disp_Token (Ctxt, Tok_Else); end if; Cond_Wf := Get_Chain (Cond_Wf); + exit when Cond_Wf = Null_Iir; + Disp_Token (Ctxt, Tok_Else); end loop; end Disp_Conditional_Waveform; |