Skip to content

Commit c50817d

Browse files
committed
[LLDB][NativePDB] Don't create inlined function parameters when it's malformed.
1 parent 3f7a6ce commit c50817d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,9 +1285,11 @@ void PdbAstBuilder::CreateFunctionParameters(PdbCompilandSymId func_id,
12851285
break;
12861286
}
12871287
case S_BLOCK32:
1288-
// All parameters should come before the first block. If that isn't the
1289-
// case, then perhaps this is bad debug info that doesn't contain
1290-
// information about all parameters.
1288+
case S_INLINESITE:
1289+
case S_INLINESITE2:
1290+
// All parameters should come before the first block/inlinesite. If that
1291+
// isn't the case, then perhaps this is bad debug info that doesn't
1292+
// contain information about all parameters.
12911293
return;
12921294
default:
12931295
continue;

0 commit comments

Comments
 (0)