summaryrefslogtreecommitdiff
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold2015-06-09 20:15:53 +0200
committerTristan Gingold2015-06-09 20:15:53 +0200
commit051c628175b30d752db4d8e292b992c30364116f (patch)
treef55174c79581d0a250c357328b50bdd9798782c8 /src/vhdl
parenta1967a7c1aa5a59d53e359b0b0b55765d5b6bbfd (diff)
downloadghdl-051c628175b30d752db4d8e292b992c30364116f.tar.gz
ghdl-051c628175b30d752db4d8e292b992c30364116f.tar.bz2
ghdl-051c628175b30d752db4d8e292b992c30364116f.zip
evaluation: handle fp_literal in build_constant.
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/evaluation.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/evaluation.adb b/src/vhdl/evaluation.adb
index 76464a7..589ab1f 100644
--- a/src/vhdl/evaluation.adb
+++ b/src/vhdl/evaluation.adb
@@ -199,7 +199,8 @@ package body Evaluation is
return Build_Enumeration_Constant
(Iir_Index32 (Get_Enum_Pos (Val)), Origin);
- when Iir_Kind_Physical_Int_Literal =>
+ when Iir_Kind_Physical_Int_Literal
+ | Iir_Kind_Physical_Fp_Literal =>
Res := Create_Iir (Iir_Kind_Physical_Int_Literal);
Set_Unit_Name (Res, Get_Primary_Unit_Name
(Get_Base_Type (Get_Type (Origin))));