comparison gen/toobj.c @ 69:2b5a2eaa88be trunk

[svn r73] Identity expression for dynamic array and null was broken.
author lindquist
date Sun, 28 Oct 2007 04:23:38 +0100
parents c4b3f5d2cd9b
children d7e764e62462
comparison
equal deleted inserted replaced
68:c4b3f5d2cd9b 69:2b5a2eaa88be
545 _init = ts->sym->llvmInitZ; 545 _init = ts->sym->llvmInitZ;
546 } 546 }
547 // array single value init 547 // array single value init
548 else if (llvm::isa<llvm::ArrayType>(_type)) 548 else if (llvm::isa<llvm::ArrayType>(_type))
549 { 549 {
550 _init = LLVM_DtoConstantStaticArray(_type, _init); 550 _init = LLVM_DtoConstStaticArray(_type, _init);
551 } 551 }
552 else { 552 else {
553 Logger::cout() << "Unexpected initializer type: " << *_type << '\n'; 553 Logger::cout() << "Unexpected initializer type: " << *_type << '\n';
554 //assert(0); 554 //assert(0);
555 } 555 }