We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 245f43d commit 9e552adCopy full SHA for 9e552ad
clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -7426,10 +7426,9 @@ class MappableExprsHandler {
7426
// size
7427
llvm::Value *PointerSize = CGF.Builder.CreateIntCast(
7428
llvm::ConstantInt::get(
7429
- CGF.CGM.SizeTy,
7430
- CGF.getContext().getTypeSize(
7431
- CGF.getContext().getPointerType(CGF.getContext().VoidTy)) /
7432
- 8),
+ CGF.CGM.SizeTy, CGF.getContext()
+ .getTypeSizeInChars(CGF.getContext().VoidPtrTy)
+ .getQuantity()),
7433
CGF.Int64Ty, /*isSigned=*/true);
7434
7435
CombinedInfo.Exprs.emplace_back(AttachInfo.AttachPtrDecl,
0 commit comments