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/CodeGen/AsmPrinter/CodeViewDebug.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/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 7c2673a..cd182c7 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -2080,7 +2080,7 @@ TypeIndex CodeViewDebug::lowerTypeEnum(const DICompositeType *Ty) { // order, which is what MSVC does. if (auto *Enumerator = dyn_cast_or_null<DIEnumerator>(Element)) { EnumeratorRecord ER(MemberAccess::Public, - APSInt::getUnsigned(Enumerator->getValue()), + APSInt(Enumerator->getValue(), true), Enumerator->getName()); ContinuationBuilder.writeMemberType(ER); EnumeratorCount++; |