Skip to content

Commit

Permalink
Merge pull request #7208 from KevinRansom/cherrypickfix
Browse files Browse the repository at this point in the history
cherrypick fix portable PDBs for anon records (#7099)
  • Loading branch information
KevinRansom authored Jul 12, 2019
2 parents 869c2bb + 9dc9d0e commit c80a0cb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/absil/ilwritepdb.fs
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,17 @@ let generatePortablePdb (embedAllSource: bool) (embedSourceList: string list) (s
if i < 1 || offsetDelta > 0 then
builder.WriteCompressedInteger offsetDelta

// Hidden-sequence-point-record
if startLine = 0xfeefee || endLine = 0xfeefee || (startColumn = 0 && endColumn = 0)
// Check for hidden-sequence-point-record
if startLine = 0xfeefee ||
endLine = 0xfeefee ||
(startColumn = 0 && endColumn = 0) ||
((endLine - startLine) = 0 && (endColumn - startColumn) = 0)
then
// Hidden-sequence-point-record
builder.WriteCompressedInteger 0
builder.WriteCompressedInteger 0
else // Non-hidden-sequence-point-record
else
// Non-hidden-sequence-point-record
let deltaLines = endLine - startLine // lines
builder.WriteCompressedInteger deltaLines

Expand Down

0 comments on commit c80a0cb

Please sign in to comment.