diff gen/arrays.cpp @ 234:9760f54af0b7 trunk

[svn r250] Fixed the warning about dropping arguments to _Dmain when optimizing. Did a few cleanups in inline asm code.
author lindquist
date Sun, 08 Jun 2008 08:03:19 +0200
parents 0806379a5eca
children a95056b3c996
line wrap: on
line diff
--- a/gen/arrays.cpp	Sun Jun 08 06:45:54 2008 +0200
+++ b/gen/arrays.cpp	Sun Jun 08 08:03:19 2008 +0200
@@ -15,15 +15,20 @@
 
 //////////////////////////////////////////////////////////////////////////////////////////
 
-const llvm::StructType* DtoArrayType(Type* t)
+const llvm::StructType* DtoArrayType(Type* arrayTy)
 {
-    assert(t->next);
-    const LLType* elemty = DtoType(t->next);
+    assert(arrayTy->next);
+    const LLType* elemty = DtoType(arrayTy->next);
     if (elemty == llvm::Type::VoidTy)
         elemty = llvm::Type::Int8Ty;
     return llvm::StructType::get(DtoSize_t(), getPtrToType(elemty), 0);
 }
 
+const llvm::StructType* DtoArrayType(const LLType* t)
+{
+    return llvm::StructType::get(DtoSize_t(), getPtrToType(t), 0);
+}
+
 //////////////////////////////////////////////////////////////////////////////////////////
 
 const llvm::ArrayType* DtoStaticArrayType(Type* t)