diff options
author | LemonBoy <thatlemon@gmail.com> | 2020-04-18 11:31:38 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-04-18 12:49:31 -0700 |
commit | aad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8 (patch) | |
tree | bf226a10aaa30fe6e0755ed1387540dad50851c4 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | ecddafd84a7aa74fb8c4087926db16eb1c459028 (diff) | |
download | llvm-aad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8.zip llvm-aad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8.tar.gz llvm-aad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8.tar.bz2 |
[DebugInfo] Change DIEnumerator payload type from int64_t to APInt
This allows the representation of arbitrarily large enumeration values.
See https://lists.llvm.org/pipermail/llvm-dev/2017-December/119475.html for context.
Reviewed By: andrewrk, aprantl, MaskRay
Differential Revision: https://reviews.llvm.org/D62475
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 8f7f980..4b8b0ec 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -2317,7 +2317,7 @@ Error BitcodeReader::resolveGlobalAndIndirectSymbolInits() { return Error::success(); } -static APInt readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) { +APInt llvm::readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) { SmallVector<uint64_t, 8> Words(Vals.size()); transform(Vals, Words.begin(), BitcodeReader::decodeSignRotatedValue); |