rustc_codegen_llvm: use safe references for Context and Module.
This commit is contained in:
@@ -50,7 +50,7 @@ pub fn span_start(cx: &CodegenCx, span: Span) -> syntax_pos::Loc {
|
||||
|
||||
#[inline]
|
||||
pub fn debug_context<'a, 'tcx>(cx: &'a CodegenCx<'a, 'tcx>)
|
||||
-> &'a CrateDebugContext<'tcx> {
|
||||
-> &'a CrateDebugContext<'a, 'tcx> {
|
||||
cx.dbg_cx.as_ref().unwrap()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user