Rollup merge of #123102 - durin42:llvm-19-pass-ptr, r=workingjubilee

RustWrapper: update call for llvm/llvm-project@44d037cc258dcf179d2c48…

…c93996bb406ecd0fae

Easy change.

`@rustbot` label: +llvm-main
This commit is contained in:
Matthias Krüger 2024-03-27 05:21:17 +01:00 committed by GitHub
commit fc51dbd379
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1992,7 +1992,11 @@ extern "C" void LLVMRustContextConfigureDiagnosticHandler(
} }
} }
if (DiagnosticHandlerCallback) { if (DiagnosticHandlerCallback) {
#if LLVM_VERSION_GE(19, 0)
DiagnosticHandlerCallback(&DI, DiagnosticHandlerContext);
#else
DiagnosticHandlerCallback(DI, DiagnosticHandlerContext); DiagnosticHandlerCallback(DI, DiagnosticHandlerContext);
#endif
return true; return true;
} }
return false; return false;