Skip to content

Commit 5b61719

Browse files
committed
[perf experiment] Set diagnostics hotness requested
1 parent f362387 commit 5b61719

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ extern "C" void LLVMRustSetLastError(const char *Err) {
104104
extern "C" LLVMContextRef LLVMRustContextCreate(bool shouldDiscardNames) {
105105
auto ctx = new LLVMContext();
106106
ctx->setDiscardValueNames(shouldDiscardNames);
107+
ctx->setDiagnosticsHotnessRequested(true);
107108
return wrap(ctx);
108109
}
109110

0 commit comments

Comments
 (0)