Skip to content

Commit aadd0d3

Browse files
committed
This code was using 0 to mean LLDB_INVALID_LINE_NUMBER. I had
fixed that in a previous patch, but missed one place where it was checking against 0 incorrectly.
1 parent 0695a7b commit aadd0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Symbol/CompileUnit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ void CompileUnit::ResolveSymbolContext(
271271
SymbolContext sc(GetModule());
272272
sc.comp_unit = this;
273273

274-
if (line == 0) {
274+
if (line == LLDB_INVALID_LINE_NUMBER) {
275275
if (file_spec_matches_cu_file_spec && !check_inlines) {
276276
// only append the context if we aren't looking for inline call sites by
277277
// file and line and if the file spec matches that of the compile unit

0 commit comments

Comments
 (0)