1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fixed build failure (due to unused variable error) in r273807.

llvm-svn: 273809
This commit is contained in:
Amjad Aboud 2016-06-26 12:43:33 +00:00
parent eef5ae3754
commit ae2245ccca

View File

@ -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;
}