File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1780,15 +1780,15 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1780
1780
if (auto *DITy = getTypeOrNull (DbgTy.getType ())) {
1781
1781
// FIXME: Enable this assertion.
1782
1782
#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 ) {
1786
1786
DITy->dump ();
1787
1787
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 " ;
1790
1790
}
1791
- assert (SizeInBits == *CachedSizeInBits );
1791
+ assert (llvm::alignTo (CachedSizeInBits, 8 ) == *SizeInBits );
1792
1792
}
1793
1793
}
1794
1794
#endif
You can’t perform that action at this time.
0 commit comments