From 1d63a7ddba310aa447de4450dd3eae64c516f296 Mon Sep 17 00:00:00 2001 From: Amjad Aboud Date: Sun, 26 Jun 2016 12:43:33 +0000 Subject: Fixed build failure (due to unused variable error) in r273807. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273809 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 4e463a2ec5c..cb834f577b6 100644 --- a/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/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; } -- cgit v1.2.3