From 5b6171900ed2ed3294bf10800068bb248642d907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Mon, 7 Aug 2023 00:00:00 +0000 Subject: [PATCH] [perf experiment] Set diagnostics hotness requested --- compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 8ef39a6c86627..4f0eee5bac68a 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -104,6 +104,7 @@ extern "C" void LLVMRustSetLastError(const char *Err) { extern "C" LLVMContextRef LLVMRustContextCreate(bool shouldDiscardNames) { auto ctx = new LLVMContext(); ctx->setDiscardValueNames(shouldDiscardNames); + ctx->setDiagnosticsHotnessRequested(true); return wrap(ctx); }