Skip to content

Commit 1caa593

Browse files
committed
Expose a self-referential object
1 parent a59cf4e commit 1caa593

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_codegen_llvm/back/write.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ impl CodegenContext {
399399
}
400400

401401
struct DiagnosticHandlers<'a> {
402+
#[allow(dead_code)]
403+
// This value is not actually dead, llcx has pointers to it and needs these pointers to be alive
404+
// until Drop is executed on this object
402405
inner: Box<(&'a CodegenContext, &'a Handler)>,
403406
llcx: ContextRef,
404407
}

0 commit comments

Comments
 (0)