summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmjad Aboud <amjad.aboud@intel.com>2016-06-26 12:43:33 +0000
committerAmjad Aboud <amjad.aboud@intel.com>2016-06-26 12:43:33 +0000
commit1d63a7ddba310aa447de4450dd3eae64c516f296 (patch)
treef15a7702f16a2a166a268c67da39706e243444dc
parent5288df58b7bed9c6fa88860284ab0a5c4e90ae9a (diff)
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
-rw-r--r--lib/CodeGen/AsmPrinter/CodeViewDebug.cpp4
1 files changed, 1 insertions, 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;
}