diff options
author | Amjad Aboud <amjad.aboud@intel.com> | 2016-06-26 12:43:33 +0000 |
---|---|---|
committer | Amjad Aboud <amjad.aboud@intel.com> | 2016-06-26 12:43:33 +0000 |
commit | ac97be64f0a67566b7c0e15455c14f851c884183 (patch) | |
tree | 82b182ad0b270bb6c7d2e6e87d744699270aa192 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 135f735af149e305635ba3886065b493d5c2bf8c (diff) | |
download | bcm5719-llvm-ac97be64f0a67566b7c0e15455c14f851c884183.tar.gz bcm5719-llvm-ac97be64f0a67566b7c0e15455c14f851c884183.zip |
Fixed build failure (due to unused variable error) in r273807.
llvm-svn: 273809
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 4e463a2ec5c..cb834f577b6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -911,7 +911,6 @@ TypeIndex CodeViewDebug::lowerTypeArray(const DICompositeType *Ty) { TypeIndex IndexType = Asm->MAI->getPointerSize() == 8 ? TypeIndex(SimpleTypeKind::UInt64Quad) : TypeIndex(SimpleTypeKind::UInt32Long); - uint64_t Size = Ty->getSizeInBits() / 8; assert(ElementTypeRef.resolve()); uint64_t ElementSize = ElementTypeRef.resolve()->getSizeInBits() / 8; @@ -957,8 +956,7 @@ TypeIndex CodeViewDebug::lowerTypeArray(const DICompositeType *Ty) { ArrayRecord(ElementTypeIndex, IndexType, ElementSize, Name)); } - (void)UndefinedSubrange; - assert(UndefinedSubrange || ElementSize == Size); + assert(UndefinedSubrange || ElementSize == (Ty->getSizeInBits() / 8)); return ElementTypeIndex; } |