mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Raise min LLVM version to 3.9 (#2872)
This commit is contained in:
parent
18bbaa1895
commit
5c24f60cf9
77 changed files with 83 additions and 4146 deletions
|
@ -40,13 +40,8 @@ RTTIBuilder::RTTIBuilder(Type *baseType) {
|
|||
void RTTIBuilder::push(llvm::Constant *C) {
|
||||
// We need to explicitly zero any padding bytes as per TDPL §7.1.1 (and
|
||||
// also match the struct type lowering code here).
|
||||
const uint64_t fieldStart =
|
||||
#if LDC_LLVM_VER >= 309
|
||||
llvm::alignTo
|
||||
#else
|
||||
llvm::RoundUpToAlignment
|
||||
#endif
|
||||
(prevFieldEnd, gDataLayout->getABITypeAlignment(C->getType()));
|
||||
const uint64_t fieldStart = llvm::alignTo(
|
||||
prevFieldEnd, gDataLayout->getABITypeAlignment(C->getType()));
|
||||
|
||||
const uint64_t paddingBytes = fieldStart - prevFieldEnd;
|
||||
if (paddingBytes) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue