diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-06-23 18:31:11 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-06-23 18:31:11 +0000 |
commit | fe2e66a6dab6162fb10ed2d576cd122f34d2626f (patch) | |
tree | e5a3ced413efe71d005f3acf6159f4e8af54b198 /lib/MC | |
parent | 7130a9561787cf14d5349d22cde1e0b3a4d5c21d (diff) | |
download | external_llvm-fe2e66a6dab6162fb10ed2d576cd122f34d2626f.zip external_llvm-fe2e66a6dab6162fb10ed2d576cd122f34d2626f.tar.gz external_llvm-fe2e66a6dab6162fb10ed2d576cd122f34d2626f.tar.bz2 |
DebugInfo: PR14404: Avoid truncating 64 bit values into 32 bits for ULEB128/SLEB128 generation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCAsmInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index 3d843b7..84e4075 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/lib/MC/MCAsmInfo.cpp @@ -98,7 +98,7 @@ MCAsmInfo::~MCAsmInfo() { } -unsigned MCAsmInfo::getULEB128Size(unsigned Value) { +unsigned MCAsmInfo::getULEB128Size(uint64_t Value) { unsigned Size = 0; do { Value >>= 7; @@ -107,7 +107,7 @@ unsigned MCAsmInfo::getULEB128Size(unsigned Value) { return Size; } -unsigned MCAsmInfo::getSLEB128Size(int Value) { +unsigned MCAsmInfo::getSLEB128Size(int64_t Value) { unsigned Size = 0; int Sign = Value >> (8 * sizeof(Value) - 1); bool IsMore; |