Skip to content

Commit 2a01074

Browse files
committed
RustWrapper: update call for llvm/llvm-project@44d037c
Easy change. @rustbot label: +llvm-main
1 parent 536606b commit 2a01074

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,11 @@ extern "C" void LLVMRustContextConfigureDiagnosticHandler(
19921992
}
19931993
}
19941994
if (DiagnosticHandlerCallback) {
1995+
#if LLVM_VERSION_GE(19, 0)
1996+
DiagnosticHandlerCallback(&DI, DiagnosticHandlerContext);
1997+
#else
19951998
DiagnosticHandlerCallback(DI, DiagnosticHandlerContext);
1999+
#endif
19962000
return true;
19972001
}
19982002
return false;

0 commit comments

Comments
 (0)