diff gen/tollvm.cpp @ 1504:855f188aab7a

Added a stripModifiers() function to remove shared|const|immutable storage classes in D2 (should eventually be moved to a dhelpers file rather than llvm helpers). Replaced a few occurances of STCinvariant with STCimmutable.
author Robert Clipsham <robert@octarineparrot.com>
date Thu, 18 Jun 2009 15:44:04 +0100
parents 8b9f236dd051
children ad7f2f1862d6
line wrap: on
line diff
--- a/gen/tollvm.cpp	Tue Jun 16 15:37:40 2009 +0200
+++ b/gen/tollvm.cpp	Thu Jun 18 15:44:04 2009 +0100
@@ -54,9 +54,7 @@
 
 const LLType* DtoType(Type* t)
 {
-#if DMDV2
-    t = t->mutableOf();
-#endif
+    t = stripModifiers( t );
 
     if (t->irtype)
     {