mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 00:50:03 +08:00
[Dexter] Account for another no-lineno scenario
This is another part of Dexter that had never seen a missing source location before, now newly turning up on Darwin.
This commit is contained in:
@@ -168,7 +168,8 @@ class DexExpectWatchBase(CommandBase):
|
||||
for step in step_collection.steps:
|
||||
loc = step.current_location
|
||||
|
||||
if (os.path.exists(loc.path) and os.path.exists(self.path) and
|
||||
if (loc and os.path.exists(loc.path) and
|
||||
os.path.exists(self.path) and
|
||||
os.path.samefile(loc.path, self.path) and
|
||||
loc.lineno in self.line_range):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user