aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2005-09-26 05:32:57 +0000
committergingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2005-09-26 05:32:57 +0000
commit5a796e95978dd35120de0deab79b11f975c831f5 (patch)
tree8a15cf4dc98d072da67c6c13c5274819a207a867
parent977ff5e02c6d2f9bfdabcf8b4e98b81e2d83e849 (diff)
downloadghdl-5a796e95978dd35120de0deab79b11f975c831f5.tar.gz
ghdl-5a796e95978dd35120de0deab79b11f975c831f5.tar.bz2
ghdl-5a796e95978dd35120de0deab79b11f975c831f5.zip
check_range: do not compare ATYPE with EXPR type if EXPR is null_iir
-rw-r--r--translate/translation.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate/translation.adb b/translate/translation.adb
index 786a9b299..8f3c66172 100644
--- a/translate/translation.adb
+++ b/translate/translation.adb
@@ -8359,7 +8359,7 @@ package body Translation is
If_Blk : O_If_Block;
begin
if not Need_Range_Check (Atype)
- or else Get_Type (Expr) = Atype
+ or else (Expr /= Null_Iir and then Get_Type (Expr) = Atype)
then
return;
end if;