Skip to content

Commit 25bb0c6

Browse files
dsymebaronfel
authored andcommitted
fix portable PDBs for anon records (#7099)
1 parent 3d85935 commit 25bb0c6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/absil/ilwritepdb.fs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,17 @@ let generatePortablePdb (embedAllSource: bool) (embedSourceList: string list) (s
403403
if i < 1 || offsetDelta > 0 then
404404
builder.WriteCompressedInteger offsetDelta
405405

406-
// Hidden-sequence-point-record
407-
if startLine = 0xfeefee || endLine = 0xfeefee || (startColumn = 0 && endColumn = 0)
406+
// Check for hidden-sequence-point-record
407+
if startLine = 0xfeefee ||
408+
endLine = 0xfeefee ||
409+
(startColumn = 0 && endColumn = 0) ||
410+
((endLine - startLine) = 0 && (endColumn - startColumn) = 0)
408411
then
412+
// Hidden-sequence-point-record
409413
builder.WriteCompressedInteger 0
410414
builder.WriteCompressedInteger 0
411-
else // Non-hidden-sequence-point-record
415+
else
416+
// Non-hidden-sequence-point-record
412417
let deltaLines = endLine - startLine // lines
413418
builder.WriteCompressedInteger deltaLines
414419

0 commit comments

Comments
 (0)