diff options
author | Nikita Popov <npopov@redhat.com> | 2022-02-16 16:38:11 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-02-17 11:26:42 +0100 |
commit | 5065076698cf32b5ad3b6f88b5f3b84d68948589 (patch) | |
tree | 408357fbb628e80958a4e954a3e3495f357d71c5 /clang/lib/CodeGen/CGException.cpp | |
parent | 093ecccdab47640c5d94ace7ad440972f19f66a9 (diff) | |
download | llvm-5065076698cf32b5ad3b6f88b5f3b84d68948589.zip llvm-5065076698cf32b5ad3b6f88b5f3b84d68948589.tar.gz llvm-5065076698cf32b5ad3b6f88b5f3b84d68948589.tar.bz2 |
[CodeGen] Rename deprecated Address constructor
To make uses of the deprecated constructor easier to spot, and to
ensure that no new uses are introduced, rename it to
Address::deprecated().
While doing the rename, I've filled in element types in cases
where it was relatively obvious, but we're still left with 135
calls to the deprecated constructor.
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 91ecbec..98be1e2 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -1845,7 +1845,7 @@ Address CodeGenFunction::recoverAddrOfEscapedLocal(CodeGenFunction &ParentCGF, llvm::Value *ChildVar = Builder.CreateBitCast(RecoverCall, ParentVar.getType()); ChildVar->setName(ParentVar.getName()); - return Address(ChildVar, ParentVar.getAlignment()); + return Address::deprecated(ChildVar, ParentVar.getAlignment()); } void CodeGenFunction::EmitCapturedLocals(CodeGenFunction &ParentCGF, @@ -1931,7 +1931,8 @@ void CodeGenFunction::EmitCapturedLocals(CodeGenFunction &ParentCGF, FrameRecoverFn, {ParentI8Fn, ParentFP, llvm::ConstantInt::get(Int32Ty, FrameEscapeIdx)}); ParentFP = Builder.CreateBitCast(ParentFP, CGM.VoidPtrPtrTy); - ParentFP = Builder.CreateLoad(Address(ParentFP, getPointerAlign())); + ParentFP = Builder.CreateLoad( + Address(ParentFP, CGM.VoidPtrTy, getPointerAlign())); } } |