Skip to content

Commit 7731ee9

Browse files
committed
Rename variables in assertion (NFC)
1 parent 1576c08 commit 7731ee9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,15 +1780,15 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
17801780
if (auto *DITy = getTypeOrNull(DbgTy.getType())) {
17811781
// FIXME: Enable this assertion.
17821782
#if SWIFT_DEBUGINFO_CACHE_VERIFICATION
1783-
if (auto CachedSizeInBits = DbgTy.getTypeSizeInBits()) {
1784-
if (unsigned SizeInBits = getSizeInBits(DITy)) {
1785-
if (SizeInBits != *CachedSizeInBits) {
1783+
if (auto SizeInBits = DbgTy.getTypeSizeInBits()) {
1784+
if (unsigned CachedSizeInBits = getSizeInBits(DITy)) {
1785+
if (llvm::alignTo(CachedSizeInBits, 8) != *SizeInBits) {
17861786
DITy->dump();
17871787
DbgTy.dump();
1788-
llvm::errs() << "SizeInBits = " << SizeInBits << "\n";
1789-
llvm::errs() << "CachedSizeInBits = " << *CachedSizeInBits << "\n";
1788+
llvm::errs() << "SizeInBits = " << *SizeInBits << "\n";
1789+
llvm::errs() << "CachedSizeInBits = " << CachedSizeInBits << "\n";
17901790
}
1791-
assert(SizeInBits == *CachedSizeInBits);
1791+
assert(llvm::alignTo(CachedSizeInBits, 8) == *SizeInBits);
17921792
}
17931793
}
17941794
#endif

0 commit comments

Comments
 (0)