diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-07-17 22:03:11 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-07-17 22:56:27 +0200 |
commit | 2c68ecccc9ee1fb37eca318a9b3572813a137cd5 (patch) | |
tree | 0cac1affbba5cd273ed9aab630dc7f67dc67041c /clang/lib/CodeGen/CGClass.cpp | |
parent | f95d26006e0641385565774ca4b560cc72a84e2f (diff) | |
download | llvm-2c68ecccc9ee1fb37eca318a9b3572813a137cd5.zip llvm-2c68ecccc9ee1fb37eca318a9b3572813a137cd5.tar.gz llvm-2c68ecccc9ee1fb37eca318a9b3572813a137cd5.tar.bz2 |
[OpaquePtr] Remove uses of CreateGEP() without element type
Remove uses of to-be-deprecated API. In cases where the correct
element type was not immediately obvious to me, fall back to
explicit getPointerElementType().
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGClass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp index c998707..9895a23 100644 --- a/clang/lib/CodeGen/CGClass.cpp +++ b/clang/lib/CodeGen/CGClass.cpp @@ -1741,6 +1741,7 @@ namespace { llvm::ConstantInt::get(CGF.SizeTy, PoisonStart.getQuantity()); llvm::Value *OffsetPtr = CGF.Builder.CreateGEP( + CGF.Int8Ty, CGF.Builder.CreateBitCast(CGF.LoadCXXThis(), CGF.Int8PtrTy), OffsetSizePtr); |