comparison 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
comparison
equal deleted inserted replaced
793:f6dd817060fc 794:661384d6a936
227 { 227 {
228 assert(t->ty == Tdelegate); 228 assert(t->ty == Tdelegate);
229 const LLType* i8ptr = getVoidPtrType(); 229 const LLType* i8ptr = getVoidPtrType();
230 const LLType* func = DtoFunctionType(t->nextOf(), NULL, i8ptr); 230 const LLType* func = DtoFunctionType(t->nextOf(), NULL, i8ptr);
231 const LLType* funcptr = getPtrToType(func); 231 const LLType* funcptr = getPtrToType(func);
232 return LLStructType::get(i8ptr, funcptr, 0); 232 return LLStructType::get(i8ptr, funcptr, NULL);
233 } 233 }
234 234
235 ////////////////////////////////////////////////////////////////////////////////////////// 235 //////////////////////////////////////////////////////////////////////////////////////////
236 236
237 LLValue* DtoDelegateEquals(TOK op, LLValue* lhs, LLValue* rhs) 237 LLValue* DtoDelegateEquals(TOK op, LLValue* lhs, LLValue* rhs)
738 } 738 }
739 739
740 // FreeBSD 740 // FreeBSD
741 else if (global.params.os == OSFreeBSD) { 741 else if (global.params.os == OSFreeBSD) {
742 // Just a pointer 742 // Just a pointer
743 return LLStructType::get(DtoSize_t(), 0); 743 return LLStructType::get(DtoSize_t(), NULL);
744 } 744 }
745 745
746 // pthread_fastlock 746 // pthread_fastlock
747 std::vector<const LLType*> types2; 747 std::vector<const LLType*> types2;
748 types2.push_back(DtoSize_t()); 748 types2.push_back(DtoSize_t());
811 return gIR->ir->CreateInsertValue(res, V2, 1, name?name:"tmp"); 811 return gIR->ir->CreateInsertValue(res, V2, 1, name?name:"tmp");
812 } 812 }
813 813
814 LLValue* DtoAggrPair(LLValue* V1, LLValue* V2, const char* name) 814 LLValue* DtoAggrPair(LLValue* V1, LLValue* V2, const char* name)
815 { 815 {
816 const LLType* t = LLStructType::get(V1->getType(), V2->getType(), 0); 816 const LLType* t = LLStructType::get(V1->getType(), V2->getType(), NULL);
817 return DtoAggrPair(t, V1, V2, name); 817 return DtoAggrPair(t, V1, V2, name);
818 } 818 }
819 819
820 LLValue* DtoAggrPaint(LLValue* aggr, const LLType* as) 820 LLValue* DtoAggrPaint(LLValue* aggr, const LLType* as)
821 { 821 {