Index: llvm/trunk/include/llvm/DebugInfo/CodeView/DebugLinesSubsection.h =================================================================== --- llvm/trunk/include/llvm/DebugInfo/CodeView/DebugLinesSubsection.h +++ llvm/trunk/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/trunk/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp =================================================================== --- llvm/trunk/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp +++ llvm/trunk/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/trunk/test/DebugInfo/PDB/Inputs/debug-subsections.yaml =================================================================== --- llvm/trunk/test/DebugInfo/PDB/Inputs/debug-subsections.yaml +++ llvm/trunk/test/DebugInfo/PDB/Inputs/debug-subsections.yaml @@ -38,7 +38,7 @@ - !Lines CodeSize: 10 Flags: [ ] - RelocOffset: 16 + RelocOffset: 100016 RelocSegment: 1 Blocks: - FileName: 'd:\src\llvm\test\debuginfo\pdb\inputs\empty.cpp'