Expose a self-referential object
This commit is contained in:
parent
a59cf4e913
commit
1caa593cb6
1 changed files with 3 additions and 0 deletions
|
@ -399,6 +399,9 @@ impl CodegenContext {
|
|||
}
|
||||
|
||||
struct DiagnosticHandlers<'a> {
|
||||
#[allow(dead_code)]
|
||||
// This value is not actually dead, llcx has pointers to it and needs these pointers to be alive
|
||||
// until Drop is executed on this object
|
||||
inner: Box<(&'a CodegenContext, &'a Handler)>,
|
||||
llcx: ContextRef,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue