Skip to content

Commit eaea17d

Browse files
Update clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
Co-authored-by: Andy Kaylor <[email protected]>
1 parent f5fca25 commit eaea17d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ CharUnits CIRGenItaniumCXXABI::getArrayCookieSizeImpl(QualType elementType) {
19901990
// The array cookie is a size_t; pad that up to the element alignment.
19911991
// The cookie is actually right-justified in that space.
19921992
return std::max(
1993-
CharUnits::fromQuantity(cgm.SizeSizeInBytes),
1993+
cgm.getSizeSize(),
19941994
cgm.getASTContext().getPreferredTypeAlignInChars(elementType));
19951995
}
19961996

0 commit comments

Comments
 (0)