diff options
author | Nikita Popov <npopov@redhat.com> | 2023-07-18 11:52:27 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-07-18 11:52:27 +0200 |
commit | 34f73967aecfebcc0ab62d18af51ae57cfb5c33c (patch) | |
tree | dfc64aec5c33300bcfdddac6610826e672950acb /polly | |
parent | 4b8b71f43c5802a33b9c09775e81cff234856158 (diff) | |
download | llvm-34f73967aecfebcc0ab62d18af51ae57cfb5c33c.zip llvm-34f73967aecfebcc0ab62d18af51ae57cfb5c33c.tar.gz llvm-34f73967aecfebcc0ab62d18af51ae57cfb5c33c.tar.bz2 |
[polly] Remove use of getWithSamePointeeType() (NFC)
Diffstat (limited to 'polly')
-rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 4c13364..3de1781 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -265,19 +265,7 @@ Value *BlockGenerator::generateLocationAccessed( if (AccessExpr) { AccessExpr = isl_ast_expr_address_of(AccessExpr); - auto Address = ExprBuilder->create(AccessExpr); - - // Cast the address of this memory access to a pointer type that has the - // same element type as the original access, but uses the address space of - // the newly generated pointer. - auto OldPtrTy = ExpectedType->getPointerTo(); - auto NewPtrTy = Address->getType(); - OldPtrTy = PointerType::getWithSamePointeeType( - OldPtrTy, NewPtrTy->getPointerAddressSpace()); - - if (OldPtrTy != NewPtrTy) - Address = Builder.CreateBitOrPointerCast(Address, OldPtrTy); - return Address; + return ExprBuilder->create(AccessExpr); } assert( Pointer && |