diff options
| author | gingerBill <bill@gingerbill.org> | 2025-04-03 10:04:14 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-04-03 10:04:14 +0100 |
| commit | ce5b7cccab8d217e09bb543ffe0f63cbadc5be75 (patch) | |
| tree | 1804a87d64cb65c99217143be41fdf2769b75a4f /src | |
| parent | 4ebaed1fddd21a42623bfeff32558496e424326c (diff) | |
Fix `lb_add_debug_local_variable` to use the correct procedure in LLVM 20
Diffstat (limited to 'src')
| -rw-r--r-- | src/llvm_backend_debug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_debug.cpp b/src/llvm_backend_debug.cpp index 926daaae4..53c007d8d 100644 --- a/src/llvm_backend_debug.cpp +++ b/src/llvm_backend_debug.cpp @@ -1089,7 +1089,7 @@ gb_internal void lb_add_debug_local_variable(lbProcedure *p, LLVMValueRef ptr, T #if LLVM_VERSION_MAJOR <= 18 LLVMDIBuilderInsertDeclareAtEnd(m->debug_builder, storage, var_info, llvm_expr, llvm_debug_loc, block); #else - LLVMDIBuilderInsertDbgValueRecordAtEnd(m->debug_builder, storage, var_info, llvm_expr, llvm_debug_loc, block); + LLVMDIBuilderInsertDeclareRecordAtEnd(m->debug_builder, storage, var_info, llvm_expr, llvm_debug_loc, block); #endif } |