Mercurial > projects > ldc
comparison gen/llvmhelpers.cpp @ 1355:c5410f294c89
Erm... Revert the rev [1352] change, the original code was correct ...
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Fri, 15 May 2009 15:30:59 +0200 |
parents | b9f5f7c5db73 |
children | 59c2aa9def23 |
comparison
equal
deleted
inserted
replaced
1354:701d11a1e7b1 | 1355:c5410f294c89 |
---|---|
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(alignsize2 > alignsize && "this is not good, the D and LLVM " | 1468 assert(alignsize > alignsize2 && "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 } |