comparison gen/tollvm.cpp @ 464:e381e082d5cb

Fixed problem with using the variable names _arguments and _argptr in non D-style vararg functions. Fixed problem with compiling with LLVM 2.3
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 03 Aug 2008 16:10:00 +0200
parents cc40db549aea
children a34078905d01
comparison
equal deleted inserted replaced
460:3a5d6ff8c70f 464:e381e082d5cb
554 554
555 bool DtoCanLoad(LLValue* ptr) 555 bool DtoCanLoad(LLValue* ptr)
556 { 556 {
557 if (isaPointer(ptr->getType())) { 557 if (isaPointer(ptr->getType())) {
558 const LLType* data = ptr->getType()->getContainedType(0); 558 const LLType* data = ptr->getType()->getContainedType(0);
559 return data->isFirstClassType() && !data->isAggregateType(); 559 return data->isFirstClassType() && !(isaStruct(data) || isaArray(data));
560 } 560 }
561 return false; 561 return false;
562 } 562 }
563 563
564 ////////////////////////////////////////////////////////////////////////////////////////// 564 //////////////////////////////////////////////////////////////////////////////////////////