Skip to content

Commit bf6e075

Browse files
committed
Fix 2 deprecations with LLVM 20
1 parent c0bf5db commit bf6e075

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gen/variable_lifetime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ llvm::Function *LocalVariableLifetimeAnnotator::getLLVMLifetimeStartFn() {
9292
return lifetimeStartFunction;
9393

9494
lifetimeStartFunction = llvm::Intrinsic::
95-
#if LDC_LLVM_VER >= 2100
95+
#if LDC_LLVM_VER >= 2000
9696
getOrInsertDeclaration(
9797
#else
9898
getDeclaration(
@@ -108,7 +108,7 @@ llvm::Function *LocalVariableLifetimeAnnotator::getLLVMLifetimeEndFn() {
108108
return lifetimeEndFunction;
109109

110110
lifetimeEndFunction = llvm::Intrinsic::
111-
#if LDC_LLVM_VER >= 2100
111+
#if LDC_LLVM_VER >= 2000
112112
getOrInsertDeclaration(
113113
#else
114114
getDeclaration(

0 commit comments

Comments
 (0)