mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +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
|
@ -39,12 +39,7 @@ void emitCoverageLinecountInc(Loc &loc) {
|
|||
|
||||
// Do an atomic increment, so this works when multiple threads are executed.
|
||||
gIR->ir->CreateAtomicRMW(llvm::AtomicRMWInst::Add, ptr, DtoConstUint(1),
|
||||
#if LDC_LLVM_VER >= 309
|
||||
llvm::AtomicOrdering::Monotonic
|
||||
#else
|
||||
llvm::Monotonic
|
||||
#endif
|
||||
);
|
||||
llvm::AtomicOrdering::Monotonic);
|
||||
|
||||
unsigned num_sizet_bits = gDataLayout->getTypeSizeInBits(DtoSize_t());
|
||||
unsigned idx = line / num_sizet_bits;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue