diff options
author | Eric Christopher <echristo@gmail.com> | 2013-08-08 01:41:00 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-08-08 01:41:00 +0000 |
commit | 31667626106048c07866d996e667a3a10010ef4b (patch) | |
tree | 48f1f51ff6f58d08eb1724e31fd312fc9928e188 /lib/IR/DebugInfo.cpp | |
parent | e32032d812f3acac34bddc81ee8151d5c4a708d8 (diff) | |
download | external_llvm-31667626106048c07866d996e667a3a10010ef4b.zip external_llvm-31667626106048c07866d996e667a3a10010ef4b.tar.gz external_llvm-31667626106048c07866d996e667a3a10010ef4b.tar.bz2 |
Be more rigorous about the sizes of forms and attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r-- | lib/IR/DebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index ff37542..a6f1c34 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -428,7 +428,7 @@ bool DIType::Verify() const { return false; // FIXME: Sink this into the various subclass verifies. - unsigned Tag = getTag(); + uint16_t Tag = getTag(); if (!isBasicType() && Tag != dwarf::DW_TAG_const_type && Tag != dwarf::DW_TAG_volatile_type && Tag != dwarf::DW_TAG_pointer_type && Tag != dwarf::DW_TAG_ptr_to_member_type && @@ -598,7 +598,7 @@ bool DIImportedEntity::Verify() const { /// getOriginalTypeSize - If this type is derived from a base type then /// return base type size. uint64_t DIDerivedType::getOriginalTypeSize() const { - unsigned Tag = getTag(); + uint16_t Tag = getTag(); if (Tag != dwarf::DW_TAG_member && Tag != dwarf::DW_TAG_typedef && Tag != dwarf::DW_TAG_const_type && Tag != dwarf::DW_TAG_volatile_type && |