We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42cf78f commit fe440ecCopy full SHA for fe440ec
compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -1685,6 +1685,14 @@ extern "C" void LLVMRustContextConfigureDiagnosticHandler(
1685
RemarkStreamer(std::move(RemarkStreamer)),
1686
LlvmRemarkStreamer(std::move(LlvmRemarkStreamer)) {}
1687
1688
+#if LLVM_VERSION_GE(22, 0)
1689
+ ~RustDiagnosticHandler() {
1690
+ if (RemarkStreamer) {
1691
+ RemarkStreamer->releaseSerializer();
1692
+ }
1693
1694
+#endif
1695
+
1696
virtual bool handleDiagnostics(const DiagnosticInfo &DI) override {
1697
// If this diagnostic is one of the optimization remark kinds, we can
1698
// check if it's enabled before emitting it. This can avoid many
0 commit comments