mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
Add support for LLVM 13
This commit is contained in:
parent
891c823c5a
commit
019e9c8e30
12 changed files with 3500 additions and 20 deletions
|
@ -43,7 +43,7 @@ void emitCoverageLinecountInc(const Loc &loc) {
|
|||
case opts::CoverageIncrement::atomic:
|
||||
// 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 >= 1400
|
||||
#if LDC_LLVM_VER >= 1300
|
||||
LLAlign(4),
|
||||
#endif
|
||||
llvm::AtomicOrdering::Monotonic);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue