Index: llvm/include/llvm/DebugInfo/CodeView/DebugLinesSubsection.h =================================================================== --- llvm/include/llvm/DebugInfo/CodeView/DebugLinesSubsection.h +++ llvm/include/llvm/DebugInfo/CodeView/DebugLinesSubsection.h @@ -122,7 +122,7 @@ uint32_t calculateSerializedSize() const override; Error commit(BinaryStreamWriter &Writer) const override; - void setRelocationAddress(uint16_t Segment, uint16_t Offset); + void setRelocationAddress(uint16_t Segment, uint32_t Offset); void setCodeSize(uint32_t Size); void setFlags(LineFlags Flags); @@ -131,7 +131,7 @@ private: DebugChecksumsSubsection &Checksums; - uint16_t RelocOffset = 0; + uint32_t RelocOffset = 0; uint16_t RelocSegment = 0; uint32_t CodeSize = 0; LineFlags Flags = LF_None; Index: llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp =================================================================== --- llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp +++ llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp @@ -145,7 +145,7 @@ } void DebugLinesSubsection::setRelocationAddress(uint16_t Segment, - uint16_t Offset) { + uint32_t Offset) { RelocOffset = Offset; RelocSegment = Segment; } Index: llvm/test/DebugInfo/PDB/Inputs/simple-line-info.yaml =================================================================== --- llvm/test/DebugInfo/PDB/Inputs/simple-line-info.yaml +++ llvm/test/DebugInfo/PDB/Inputs/simple-line-info.yaml @@ -17,7 +17,7 @@ - !Lines CodeSize: 10 Flags: [ ] - RelocOffset: 16 + RelocOffset: 100016 RelocSegment: 1 Blocks: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp' Index: llvm/test/DebugInfo/PDB/pdbdump-yaml-lineinfo-write.test =================================================================== --- llvm/test/DebugInfo/PDB/pdbdump-yaml-lineinfo-write.test +++ llvm/test/DebugInfo/PDB/pdbdump-yaml-lineinfo-write.test @@ -29,7 +29,7 @@ LINES-NEXT: Lines { LINES-NEXT: Block { LINES-NEXT: RelocSegment: 1 -LINES-NEXT: RelocOffset: 16 +LINES-NEXT: RelocOffset: 100016 LINES-NEXT: CodeSize: 10 LINES-NEXT: HasColumns: No LINES-NEXT: Lines {