aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp
diff options
context:
space:
mode:
authorBob Haarman <llvm@inglorion.net>2017-06-09 01:18:10 +0000
committerBob Haarman <llvm@inglorion.net>2017-06-09 01:18:10 +0000
commitfdf499bf2d589bee2a6a3da49a74840c4c511c59 (patch)
tree9755204587b2c2bd79d6121f8b6343145016c934 /llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp
parent6b901217dc4f221a40efa12e0cbf2bf0bc944d9d (diff)
downloadllvm-fdf499bf2d589bee2a6a3da49a74840c4c511c59.zip
llvm-fdf499bf2d589bee2a6a3da49a74840c4c511c59.tar.gz
llvm-fdf499bf2d589bee2a6a3da49a74840c4c511c59.tar.bz2
[codeview] use 32-bit integer for RelocOffset in DebugLinesSubsection
Summary: RelocOffset is a 32-bit value, but we previously truncated it to 16 bits. Fixes PR33335. Reviewers: zturner, hiraditya! Reviewed By: zturner Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D33968 llvm-svn: 305043
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp')
-rw-r--r--llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp
index 2fce06c..33a8f78 100644
--- a/llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp
+++ b/llvm/lib/DebugInfo/CodeView/DebugLinesSubsection.cpp
@@ -145,7 +145,7 @@ uint32_t DebugLinesSubsection::calculateSerializedSize() const {
}
void DebugLinesSubsection::setRelocationAddress(uint16_t Segment,
- uint16_t Offset) {
+ uint32_t Offset) {
RelocOffset = Offset;
RelocSegment = Segment;
}