aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/vhdl-sem_expr.adb5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vhdl/vhdl-sem_expr.adb b/src/vhdl/vhdl-sem_expr.adb
index c55377f46..02c620bf5 100644
--- a/src/vhdl/vhdl-sem_expr.adb
+++ b/src/vhdl/vhdl-sem_expr.adb
@@ -697,10 +697,7 @@ package body Vhdl.Sem_Expr is
case Get_Kind (Expr) is
when Iir_Kind_Range_Expression =>
Res := Sem_Simple_Range_Expression (Expr, A_Type, Any_Dir);
- if Res = Null_Iir then
- return Null_Iir;
- end if;
- Res_Type := Get_Type (Res);
+ return Res;
when Iir_Kinds_Denoting_Name
| Iir_Kind_Attribute_Name
a id='n29' href='#n29'>29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125