llvm: fix name lifetime
This commit is contained in:
committed by
Andrew Kelley
parent
f94c66825e
commit
a01bc7776f
@@ -1169,13 +1169,14 @@ pub const Object = struct {
|
||||
llvm.DIFlags.NoReturn
|
||||
else
|
||||
0;
|
||||
const decl_di_ty = try o.lowerDebugType(decl.ty, .full);
|
||||
const subprogram = dib.createFunction(
|
||||
di_file.?.toScope(),
|
||||
mod.intern_pool.stringToSlice(decl.name),
|
||||
llvm_func.getValueName(),
|
||||
di_file.?,
|
||||
line_number,
|
||||
try o.lowerDebugType(decl.ty, .full),
|
||||
decl_di_ty,
|
||||
is_internal_linkage,
|
||||
true, // is definition
|
||||
line_number + func.lbrace_line, // scope line
|
||||
|
||||
Reference in New Issue
Block a user