comparison gen/llvmhelpers.cpp @ 1352:b9f5f7c5db73

Oups, fix assertion condition in disabled code from rev [1351].
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Thu, 14 May 2009 17:23:55 +0200
parents 8d501abecd24
children c5410f294c89
comparison
equal deleted inserted replaced
1351:8d501abecd24 1352:b9f5f7c5db73
1463 << " with llvm type " << *DtoType(type) << std::endl; 1463 << " with llvm type " << *DtoType(type) << std::endl;
1464 size_t alignsize2 = gTargetData->getABITypeAlignment(DtoType(type)); 1464 size_t alignsize2 = gTargetData->getABITypeAlignment(DtoType(type));
1465 1465
1466 if (alignsize != alignsize2) 1466 if (alignsize != alignsize2)
1467 { 1467 {
1468 assert(alignsize > alignsize2 && "this is not good, the D and LLVM " 1468 assert(alignsize2 > alignsize && "this is not good, the D and LLVM "
1469 "type alignments differ, but LLVM's is bigger! This will break " 1469 "type alignments differ, but LLVM's is bigger! This will break "
1470 "the type mapping algorithms"); 1470 "the type mapping algorithms");
1471 // don't try and align the offset, and let the mappers pad 100% manually 1471 // don't try and align the offset, and let the mappers pad 100% manually
1472 return offset; 1472 return offset;
1473 } 1473 }