[m-rev.] diff: use lowlevel representation for private_builtin.ref/1

Peter Ross pro at missioncriticalit.com
Thu Nov 13 03:46:12 AEDT 2003


Hi,


===================================================================


Estimated hours taken: 0.1
Branches: main

The type private_builtin.ref/1 is abstract, this leads to problems on strongly
typed backends such as the il backend which can generate references to this
type.

compiler/ml_util.m:
	Add private_builtin.ref/1 to the list of types which need a lowlevel
	representation.


Index: compiler/ml_util.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/ml_util.m,v
retrieving revision 1.25
diff -u -r1.25 ml_util.m
--- compiler/ml_util.m	9 May 2003 00:45:06 -0000	1.25
+++ compiler/ml_util.m	12 Nov 2003 16:37:20 -0000
@@ -633,6 +633,7 @@
 	; TypeName = qualified(PrivateBuiltin, "type_ctor_info")
 	; TypeName = qualified(PrivateBuiltin, "typeclass_info")
 	; TypeName = qualified(PrivateBuiltin, "type_info")
+	; TypeName = qualified(PrivateBuiltin, "ref")
 
 		% Use lowlevel types for all types in rtti_implementation
 		% as this allows as to add new types needed to manipulate


-- 
Peter Ross		
Software Engineer                                (Work)   +32 2 757 10 15
Mission Critical                                 (Mobile) +32 485 482 559
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list