fix scope

This commit is contained in:
Edgar 2024-03-12 17:47:59 +01:00
parent 79d0e2ca7e
commit 2debb696ba
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387

View file

@ -145,7 +145,7 @@ pub fn compile(session: &Session, program: &ProgramBody) -> Result<PathBuf, Box<
); );
let di_namespace = di_builder let di_namespace = di_builder
.create_namespace(di_unit.as_debug_info_scope(), &module.name, true) .create_namespace(di_unit.get_file().as_debug_info_scope(), &module.name, true)
.as_debug_info_scope(); .as_debug_info_scope();
let mut module_ctx = ModuleCompileCtx { let mut module_ctx = ModuleCompileCtx {