aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-04-18 11:31:38 -0700
committerFangrui Song <maskray@google.com>2020-04-18 12:49:31 -0700
commitaad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8 (patch)
treebf226a10aaa30fe6e0755ed1387540dad50851c4 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentecddafd84a7aa74fb8c4087926db16eb1c459028 (diff)
downloadllvm-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.cpp2
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++;