about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorAugie Fackler <augie@google.com>2024-03-26 14:10:25 -0400
committerAugie Fackler <augie@google.com>2024-03-26 14:10:25 -0400
commit2a0107496ec22c63f313e39482377a4189cce904 (patch)
tree1931033290a60cf478bc7b261fed65c22b43dd3c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent536606bc5df7e6045c6dbedc2f852ba3d38581f1 (diff)
downloadrust-2a0107496ec22c63f313e39482377a4189cce904.tar.gz
rust-2a0107496ec22c63f313e39482377a4189cce904.zip
RustWrapper: update call for llvm/llvm-project@44d037cc258dcf179d2c48c93996bb406ecd0fae
Easy change.

@rustbot label: +llvm-main
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index f6ec410bfac..8ec1f5a99e7 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -1992,7 +1992,11 @@ extern "C" void LLVMRustContextConfigureDiagnosticHandler(
         }
       }
       if (DiagnosticHandlerCallback) {
+#if LLVM_VERSION_GE(19, 0)
+        DiagnosticHandlerCallback(&DI, DiagnosticHandlerContext);
+#else
         DiagnosticHandlerCallback(DI, DiagnosticHandlerContext);
+#endif
         return true;
       }
       return false;