Skip to content

Commit afb9089

Browse files
committed
Apply reviewer's comment
Signed-off-by: Mariya Podchishchaeva <[email protected]>
1 parent 0f7903f commit afb9089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CodeGen/CGClass.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ ApplyNonVirtualAndVirtualOffset(CodeGenFunction &CGF, Address addr,
246246

247247
// Apply the base offset.
248248
llvm::Value *ptr = addr.getPointer();
249-
llvm::Type *ResTy = llvm::PointerType::getInt8PtrTy(
249+
llvm::Type *resTy = llvm::PointerType::getInt8PtrTy(
250250
CGF.getLLVMContext(), ptr->getType()->getPointerAddressSpace());
251-
ptr = CGF.Builder.CreateBitCast(ptr, ResTy);
251+
ptr = CGF.Builder.CreateBitCast(ptr, resTy);
252252
ptr = CGF.Builder.CreateInBoundsGEP(ptr, baseOffset, "add.ptr");
253253

254254
// If we have a virtual component, the alignment of the result will

0 commit comments

Comments
 (0)