diff gen/tollvm.cpp @ 794:661384d6a936

Fix warnings on x86-64. By fvbommel.
author Christian Kamm <kamm incasoftware de>
date Fri, 28 Nov 2008 21:24:08 +0100
parents f04dde6e882c
children 340acf1535d0
line wrap: on
line diff
--- a/gen/tollvm.cpp	Thu Nov 27 18:31:09 2008 +0100
+++ b/gen/tollvm.cpp	Fri Nov 28 21:24:08 2008 +0100
@@ -229,7 +229,7 @@
     const LLType* i8ptr = getVoidPtrType();
     const LLType* func = DtoFunctionType(t->nextOf(), NULL, i8ptr);
     const LLType* funcptr = getPtrToType(func);
-    return LLStructType::get(i8ptr, funcptr, 0);
+    return LLStructType::get(i8ptr, funcptr, NULL);
 }
 
 //////////////////////////////////////////////////////////////////////////////////////////
@@ -740,7 +740,7 @@
     // FreeBSD
     else if (global.params.os == OSFreeBSD) {
         // Just a pointer
-        return LLStructType::get(DtoSize_t(), 0);
+        return LLStructType::get(DtoSize_t(), NULL);
     }
 
     // pthread_fastlock
@@ -813,7 +813,7 @@
 
 LLValue* DtoAggrPair(LLValue* V1, LLValue* V2, const char* name)
 {
-    const LLType* t = LLStructType::get(V1->getType(), V2->getType(), 0);
+    const LLType* t = LLStructType::get(V1->getType(), V2->getType(), NULL);
     return DtoAggrPair(t, V1, V2, name);
 }