aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/llvm35/ortho_llvm.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/ortho/llvm35/ortho_llvm.adb')
-rw-r--r--src/ortho/llvm35/ortho_llvm.adb9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ortho/llvm35/ortho_llvm.adb b/src/ortho/llvm35/ortho_llvm.adb
index a4f4599e6..47509ee74 100644
--- a/src/ortho/llvm35/ortho_llvm.adb
+++ b/src/ortho/llvm35/ortho_llvm.adb
@@ -1586,7 +1586,7 @@ package body Ortho_LLVM is
-- New_Convert_Ov --
--------------------
- function New_Convert_Ov (Val : O_Enode; Rtype : O_Tnode) return O_Enode
+ function New_Convert (Val : O_Enode; Rtype : O_Tnode) return O_Enode
is
Res : ValueRef := Null_ValueRef;
begin
@@ -1677,11 +1677,16 @@ package body Ortho_LLVM is
-- Set_Insn_Dbg (Res);
return O_Enode'(LLVM => Res, Etype => Rtype);
else
- raise Program_Error with "New_Convert_Ov: not implemented for "
+ raise Program_Error with "New_Convert: not implemented for "
& ON_Type_Kind'Image (Val.Etype.Kind)
& " -> "
& ON_Type_Kind'Image (Rtype.Kind);
end if;
+ end New_Convert;
+
+ function New_Convert_Ov (Val : O_Enode; Rtype : O_Tnode) return O_Enode is
+ begin
+ return New_Convert (Val, Rtype);
end New_Convert_Ov;
-----------------