Expose a self-referential object

This commit is contained in:
Oliver Schneider 2018-07-14 20:34:32 +02:00
parent a59cf4e913
commit 1caa593cb6

View file

@ -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,
}