aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-07-30 18:59:41 +0200
committerTristan Gingold <tgingold@free.fr>2016-07-30 18:59:41 +0200
commit198e5da752e36bf1b11d09b7f2c134783725a0b5 (patch)
tree858fb696d2e33508049f906e29a530b4ef44980e /src/vhdl
parent3fcc4ea125f9738e213582e24e704817936da099 (diff)
downloadghdl-198e5da752e36bf1b11d09b7f2c134783725a0b5.tar.gz
ghdl-198e5da752e36bf1b11d09b7f2c134783725a0b5.tar.bz2
ghdl-198e5da752e36bf1b11d09b7f2c134783725a0b5.zip
sem_expr: minor rework.
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/sem_expr.adb5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb
index 7dd1303f5..a856be072 100644
--- a/src/vhdl/sem_expr.adb
+++ b/src/vhdl/sem_expr.adb
@@ -3339,11 +3339,10 @@ package body Sem_Expr is
else
-- Dynamic aggregate.
declare
+ -- There is only one choice.
+ Choice : constant Iir := Assoc_Chain;
Expr : Iir;
- Choice : Iir;
begin
- -- There is only one choice.
- Choice := Assoc_Chain;
case Get_Kind (Choice) is
when Iir_Kind_Choice_By_Expression =>
Expr := Get_Choice_Expression (Choice);