Skip to content

Commit

Permalink
RustWrapper: update call for llvm/llvm-project@44d037c
Browse files Browse the repository at this point in the history
Easy change.

@rustbot label: +llvm-main
  • Loading branch information
durin42 committed Mar 26, 2024
1 parent 536606b commit 2a01074
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2a01074

Please sign in to comment.