Skip to content

Commit 76a3022

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,8 +2015,7 @@ Address CIRGenItaniumCXXABI::initializeArrayCookie(CIRGenFunction &cgf,
20152015
std::max(sizeSize, ctx.getPreferredTypeAlignInChars(elementType));
20162016
assert(cookieSize == getArrayCookieSizeImpl(elementType));
20172017

2018-
auto u8Ty = cgf.getBuilder().getUIntNTy(8);
2019-
auto u8PtrTy = cgf.getBuilder().getPointerTo(u8Ty);
2018+
cir::PointerType u8PtrTy = cgf.getBuilder().getUInt8PtrTy()
20202019
mlir::Value baseBytePtr =
20212020
cgf.getBuilder().createPtrBitcast(newPtr.getPointer(), u8PtrTy);
20222021

0 commit comments

Comments
 (0)