Fix debug info for local variables
This commit is contained in:
parent
6634597c92
commit
242cf9fb2d
@ -88,7 +88,7 @@ impl CompiledModule {
|
||||
triple,
|
||||
into_cstring(self.cpu.clone()).as_ptr(),
|
||||
into_cstring(self.features.clone()).as_ptr(),
|
||||
llvm_sys::target_machine::LLVMCodeGenOptLevel::LLVMCodeGenLevelLess,
|
||||
llvm_sys::target_machine::LLVMCodeGenOptLevel::LLVMCodeGenLevelNone,
|
||||
llvm_sys::target_machine::LLVMRelocMode::LLVMRelocDefault,
|
||||
llvm_sys::target_machine::LLVMCodeModel::LLVMCodeModelDefault,
|
||||
);
|
||||
|
@ -741,7 +741,7 @@ impl mir::Statement {
|
||||
InstructionDebugRecordData {
|
||||
variable: var,
|
||||
location,
|
||||
kind: DebugRecordKind::Declare(value.instr()),
|
||||
kind: DebugRecordKind::Declare(alloca),
|
||||
scope: debug.scope,
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user