Add support for LLVM 13

This commit is contained in:
Martin Kinkelin 2021-10-03 10:27:40 +02:00
parent 891c823c5a
commit 019e9c8e30
12 changed files with 3500 additions and 20 deletions

View file

@ -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);