Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Remove checking on user variable to emit all debug info #217

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions numba/core/lowering.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,17 +1303,15 @@ def alloca(self, name, type):
return self.alloca_lltype(name, lltype)

def alloca_lltype(self, name, lltype):
# Is user variable?
is_uservar = not name.startswith('$')
# Allocate space for variable
aptr = cgutils.alloca_once(self.builder, lltype,
name=name, zfill=False)
if is_uservar:
# Emit debug info for user variable
sizeof = self.context.get_abi_sizeof(lltype)
self.debuginfo.mark_variable(self.builder, aptr, name=name,
lltype=lltype, size=sizeof,
loc=self.loc)

# Emit debug info for all variables
sizeof = self.context.get_abi_sizeof(lltype)
self.debuginfo.mark_variable(self.builder, aptr, name=name,
lltype=lltype, size=sizeof,
loc=self.loc)
return aptr

def incref(self, typ, val):
Expand Down